diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-11-18 12:17:32 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-11-18 13:29:02 +0100 |
commit | d1869324494d943f684c4dfd15d311e23352c6a6 (patch) | |
tree | 796c9206d08d331158561989d6514f950f46c13c | |
parent | ced9b3e50cb8a880630a3d02723816ce8c565aca (diff) |
Use std::to_string (OOXMLParserState)
Change-Id: I145f45d9980496e1ba8636597a70c4dcbf49838c
Reviewed-on: https://gerrit.libreoffice.org/63525
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | writerfilter/source/ooxml/OOXMLParserState.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
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() |