l10ntools/source/pocheck.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit abe0291cdddc9709b82d16c8aa0a0a126430d828 Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> AuthorDate: Wed Oct 2 23:33:22 2019 +0200 Commit: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> CommitDate: Wed Oct 2 23:36:51 2019 +0200 pocheck: also preserve header in check for function names Change-Id: I53b67e8c690b110d2d77e100b8170ac968e35e2b diff --git a/l10ntools/source/pocheck.cxx b/l10ntools/source/pocheck.cxx index 423f7246663f..e080138ed3fc 100644 --- a/l10ntools/source/pocheck.cxx +++ b/l10ntools/source/pocheck.cxx @@ -149,7 +149,8 @@ static void checkFunctionNames(const OString& aLanguage) aLanguage + "/formula/messages.po"; PoIfstream aPoInput; - aPoInput.open(aPoPaths[0]); + OString sPoHdrMsg; + aPoInput.open(aPoPaths[0], sPoHdrMsg); if( !aPoInput.isOpen() ) { std::cerr << "Warning: Cannot open " << aPoPaths[0] << std::endl; @@ -237,13 +238,13 @@ static void checkFunctionNames(const OString& aLanguage) { case 0: { - PoHeader hd("formula/inc"); + PoHeader hd("formula/inc", sPoHdrMsg); aPoOutput.writeHeader(hd); break; } case 1: { - PoHeader hd("scaddins/inc"); + PoHeader hd("scaddins/inc", sPoHdrMsg); aPoOutput.writeHeader(hd); break; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits