diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2019-10-02 23:33:22 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2019-10-02 23:36:51 +0200 |
commit | abe0291cdddc9709b82d16c8aa0a0a126430d828 (patch) | |
tree | 9828e76ec2ddcdfa5dcffdba9a6e4d485db9d1b8 /l10ntools | |
parent | d6b38982f24ea230badd5aff52f179b25670d4c8 (diff) |
pocheck: also preserve header in check for function names
Change-Id: I53b67e8c690b110d2d77e100b8170ac968e35e2b
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/pocheck.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |