summaryrefslogtreecommitdiff
path: root/tools/source/ref
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-05 16:08:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-06 01:13:45 +0100
commit4280a3257948e57cdf194a6e23718b46d907bbd6 (patch)
tree48196ddf19e5f9a00c916dde710e2b1200345131 /tools/source/ref
parent5cbc2052815f6640a118d64202872a082ad558b3 (diff)
-Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools
(The "clang-format off" in tools/source/misc/json_writer.cxx is necessary because otherwise the code between the SAL_WNODEPRECATED_DECLARATIONS_PUSH/POP macros would be ill-formatted in a way that would trigger loplugin:indentation.) Change-Id: Ic96787865d4c96be07c41f4939893420dfa04046 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142339 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'tools/source/ref')
-rw-r--r--tools/source/ref/globname.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx
index a41b29bba6d3..df8ff10943ea 100644
--- a/tools/source/ref/globname.cxx
+++ b/tools/source/ref/globname.cxx
@@ -17,10 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <stdio.h>
#include <string.h>
#include <comphelper/mimeconfighelper.hxx>
+#include <o3tl/sprintf.hxx>
#include <rtl/character.hxx>
#include <tools/stream.hxx>
@@ -153,7 +153,7 @@ bool SvGlobalName::MakeId( std::u16string_view rIdStr )
OUString SvGlobalName::GetHexName() const
{
char buf[ 37 ];
- int n = sprintf(buf,
+ int n = o3tl::sprintf(buf,
"%8.8" SAL_PRIXUINT32 "-%4.4X-%4.4X-%2.2x%2.2x-%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x",
m_aData.Data1, m_aData.Data2, m_aData.Data3,
m_aData.Data4[0], m_aData.Data4[1], m_aData.Data4[2], m_aData.Data4[3],