l10ntools/source/po.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7e89f4194e76863097a1d791cda8cfbf352c0109 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sun Nov 18 12:55:20 2018 +0100 Commit: Julien Nabet <serval2...@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 <serval2...@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); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits