diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-11-21 14:16:48 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-11-21 14:18:13 +0100 |
commit | 1c84f6f475a448333f844b0e25d895d117b90563 (patch) | |
tree | c0be4932ec74f1d11ef16274f405f0586e77e753 | |
parent | 970b53e050014006997410be046366fd8f1023f1 (diff) |
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
-rw-r--r-- | l10ntools/source/localize.cxx | 3 | ||||
-rw-r--r-- | 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(); } |