[Libreoffice-commits] core.git: writerfilter/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 18 12:29:24 UTC 2018


 writerfilter/source/ooxml/OOXMLParserState.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit d1869324494d943f684c4dfd15d311e23352c6a6
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Nov 18 12:17:32 2018 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 18 13:29:02 2018 +0100

    Use std::to_string (OOXMLParserState)
    
    Change-Id: I145f45d9980496e1ba8636597a70c4dcbf49838c
    Reviewed-on: https://gerrit.libreoffice.org/63525
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/writerfilter/source/ooxml/OOXMLParserState.cxx b/writerfilter/source/ooxml/OOXMLParserState.cxx
index 4b3104f166db..907484b02cd5 100644
--- a/writerfilter/source/ooxml/OOXMLParserState.cxx
+++ b/writerfilter/source/ooxml/OOXMLParserState.cxx
@@ -82,11 +82,7 @@ void OOXMLParserState::setForwardEvents(bool bForwardEvents)
 
 const std::string OOXMLParserState::getHandle() const
 {
-    char sBuffer[256];
-
-    snprintf(sBuffer, sizeof(sBuffer), "%u", mnHandle);
-
-    return sBuffer;
+    return std::to_string(mnHandle);
 }
 
 void OOXMLParserState::setHandle()


More information about the Libreoffice-commits mailing list