[Libreoffice-commits] core.git: l10ntools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Nov 18 14:04:04 UTC 2018
l10ntools/source/po.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7e89f4194e76863097a1d791cda8cfbf352c0109
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Nov 18 12:55:20 2018 +0100
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 18 15:03:43 2018 +0100
cppcheck: fix returnDanglingLifetime (l10ntools)
Change-Id: Ia3c094ee65be3f5048df6896a4a6428bdd8fed10
Reviewed-on: https://gerrit.libreoffice.org/63527
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 4e60d82160d3..a0107530e194 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -442,7 +442,7 @@ namespace
struct tm* pNow = localtime(&aNow);
char pBuff[50];
strftime( pBuff, sizeof pBuff, "%Y-%m-%d %H:%M%z", pNow );
- return pBuff;
+ return OString(pBuff);
}
}
More information about the Libreoffice-commits
mailing list