From 1c84f6f475a448333f844b0e25d895d117b90563 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Wed, 21 Nov 2012 14:16:48 +0100 Subject: [PATCH] Fix build for old gcc Workaround extra temporaries created by gcc-4.0 on mac - since here PoHeader has private copy ctor. Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2 --- l10ntools/source/localize.cxx | 3 ++- l10ntools/source/renewpo.cxx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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(); }