basic/source/runtime/methods.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 070b34c2a40c5e7d93022e331a5c90626ca603eb Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue May 10 08:54:42 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue May 10 10:51:20 2022 +0200 fix --disable-scripting build Change-Id: I41e0da3d379d54ec59f9eba46978cfe7f9e09d33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134105 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 4393041b7808..4dbe3f526626 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -110,6 +110,8 @@ using namespace com::sun::star::uno; #include <vcl/TypeSerializer.hxx> +static sal_Int32 GetDayDiff(const Date& rDate) { return rDate - Date(1899'12'30); } + #if HAVE_FEATURE_SCRIPTING static void FilterWhiteSpace( OUString& rStr ) @@ -133,8 +135,6 @@ static void FilterWhiteSpace( OUString& rStr ) rStr = aRet.makeStringAndClear(); } -static sal_Int32 GetDayDiff(const Date& rDate) { return rDate - Date(1899'12'30); } - static const CharClass& GetCharClass() { static CharClass aCharClass( Application::GetSettings().GetLanguageTag() );