diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-10 08:54:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-10 10:51:20 +0200 |
commit | 070b34c2a40c5e7d93022e331a5c90626ca603eb (patch) | |
tree | 848819d5bea5b1b708c1a137808eeac9d7e5533c /basic | |
parent | 93a102be711f4f90d1c649af8fb0a62ec970406a (diff) |
fix --disable-scripting build
Change-Id: I41e0da3d379d54ec59f9eba46978cfe7f9e09d33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134105
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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() ); |