diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index f20ed5045f65..cf211930631d 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -272,7 +272,8 @@ void handleCommand( inPath.lastIndexOf('/')- nProjectInd), RTL_TEXTENCODING_UTF8 ); - rPoOutPut.writeHeader(PoHeader(relativPath)); + PoHeader aTmp(relativPath); + rPoOutPut.writeHeader(aTmp); } } while (!in.eof()) diff --git a/l10ntools/source/renewpo.cxx b/l10ntools/source/renewpo.cxx index 13a701683985..60466fc474ad 100644 --- a/l10ntools/source/renewpo.cxx +++ b/l10ntools/source/renewpo.cxx @@ -164,7 +164,9 @@ void HandleLanguage(const OString& LangEntryName, const OString& rOldPath, << sOldPoFileName.getStr() << endl; return; } - aNewPo.writeHeader(PoHeader(aOldPo)); + + PoHeader aTmp(aOldPo); + aNewPo.writeHeader(aTmp); aOldPo.close(); }