summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/misc/lockfilecommon.cxx2
-rw-r--r--svl/source/numbers/zformat.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx
index 844b446397c7..98d8e052ac0e 100644
--- a/svl/source/misc/lockfilecommon.cxx
+++ b/svl/source/misc/lockfilecommon.cxx
@@ -209,7 +209,9 @@ OUString LockFileCommon::GetCurrentLocalTime()
{
char pDateTime[sizeof("65535.65535.-32768 65535:65535")];
// reserve enough space for hypothetical max length
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
sprintf( pDateTime, "%02" SAL_PRIuUINT32 ".%02" SAL_PRIuUINT32 ".%4" SAL_PRIdINT32 " %02" SAL_PRIuUINT32 ":%02" SAL_PRIuUINT32, sal_uInt32(aDateTime.Day), sal_uInt32(aDateTime.Month), sal_Int32(aDateTime.Year), sal_uInt32(aDateTime.Hours), sal_uInt32(aDateTime.Minutes) );
+ SAL_WNODEPRECATED_DECLARATIONS_POP
aTime = OUString::createFromAscii( pDateTime );
}
}
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index fb9cbf50493d..d527f075b330 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2906,7 +2906,9 @@ bool SvNumberformat::ImpGetFractionOutput(double fNumber,
else
{
char aBuf[100];
+ SAL_WNODEPRECATED_DECLARATIONS_PUSH // sprintf (macOS 13 SDK)
sprintf( aBuf, "%.f", fNum ); // simple rounded integer (#100211# - checked)
+ SAL_WNODEPRECATED_DECLARATIONS_POP
sStr.appendAscii( aBuf );
impTransliterate(sStr, NumFor[nIx].GetNatNum());
}