basic/source/sbx/sbxscan.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c54b8e5682373934c826702a965f97f4a7a36193
Author: Stephan Bergmann <[email protected]>
AuthorDate: Wed Sep 18 09:51:44 2024 +0200
Commit: Stephan Bergmann <[email protected]>
CommitDate: Wed Sep 18 20:12:09 2024 +0200
Avoid -Werror,-Wunused-function
Change-Id: I95ca13db07a778fc260cbb78364916cc7400e378
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173590
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <[email protected]>
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index bc87c2af158f..dbb45c34b88e 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -535,6 +535,7 @@ void BasicFormatNum(double d, const OUString* pFmt,
SbxDataType eType, OUString&
ImpCvtNum(d, eType == SbxSINGLE ? 6 : eType == SbxDOUBLE ? 14 : 0,
rRes);
}
+#if HAVE_FEATURE_SCRIPTING
// For numeric types, takes the number directly; otherwise, tries to take
string and convert it
bool GetNumberIntl(const SbxValue& val, double& ret)
{
@@ -558,6 +559,7 @@ bool GetNumberIntl(const SbxValue& val, double& ret)
return SbxValue::ScanNumIntnl(val.GetOUString(), ret) ==
ERRCODE_NONE;
}
}
+#endif
} // namespace
void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const