diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-07-30 17:53:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-07-31 12:57:20 +0200 |
commit | bc84173db412a3b78df67897e58324c17a36c361 (patch) | |
tree | 5b48e0c6732618cf92f48feda2d855a728d42cfb /l10ntools/source | |
parent | Improved loplugin:stringconstant (now that GCC 7 supports it): lingucomponent (diff) | |
download | core-bc84173db412a3b78df67897e58324c17a36c361.tar.gz core-bc84173db412a3b78df67897e58324c17a36c361.zip |
Improved loplugin:stringconstant (now that GCC 7 supports it): l10ntools
Change-Id: I98476e17e0ab6009d822205c7b31935173da2722
Reviewed-on: https://gerrit.libreoffice.org/76666
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/po.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index c317f5ba170c..921d752ce6c7 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -427,7 +427,7 @@ OString PoEntry::genKeyId(const OString& rGenerator) nCRC >>= 6; } sKeyId[5] = '\0'; - return OString(sKeyId); + return sKeyId; } namespace @@ -439,7 +439,7 @@ namespace struct tm* pNow = localtime(&aNow); char pBuff[50]; strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow ); - return OString(pBuff); + return pBuff; } } |