[Libreoffice-commits] .: l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 21 05:18:36 PST 2012
l10ntools/source/localize.cxx | 3 ++-
l10ntools/source/renewpo.cxx | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 1c84f6f475a448333f844b0e25d895d117b90563
Author: Thorsten Behrens <tbehrens at suse.com>
Date: Wed Nov 21 14:16:48 2012 +0100
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
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index f20ed50..cf21193 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 13a7016..60466fc 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();
}
More information about the Libreoffice-commits
mailing list