summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-03-05 22:31:43 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-03-05 22:32:22 +0000
commitfe4bb3579ad4539034deada1e201aa8d9ed6518f (patch)
tree08b30785e8d8d8027629f6127963582709ffbf76 /basic
parent5b2cb23c429e1be1099008473770c634ce96c969 (diff)
basic: add missing forward declarations for helper functions
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx3
-rw-r--r--basic/source/runtime/methods1.cxx3
2 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 28ce80fa4ea8..fa7d7a1efb0f 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -122,6 +122,9 @@ SbxVariable* getDefaultProp( SbxVariable* pRef );
#ifndef DISABLE_SCRIPTING
+// forward decl.
+sal_Bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, double& rdRet );
+
// from source/classes/sbxmod.cxx
Reference< XModel > getDocumentModel( StarBASIC* );
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 91c739f84f33..51f73d12d018 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -70,6 +70,7 @@ using namespace com::sun::star::i18n;
void unoToSbxValue( SbxVariable* pVar, const Any& aValue );
Any sbxToUnoValue( SbxVariable* pVar, const Type& rType, com::sun::star::beans::Property* pUnoProperty = NULL );
+sal_Int16 implGetWeekDay( double aDate, bool bFirstDayParam = false, sal_Int16 nFirstDay = 0 );
static Reference< XCalendar3 > getLocaleCalendar( void )
{
@@ -3210,7 +3211,7 @@ RTLFUNC(Me)
#endif
-sal_Int16 implGetWeekDay( double aDate, bool bFirstDayParam = false, sal_Int16 nFirstDay = 0 )
+sal_Int16 implGetWeekDay( double aDate, bool bFirstDayParam, sal_Int16 nFirstDay )
{
Date aRefDate( 1,1,1900 );
long nDays = (long) aDate;