summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-11 14:31:00 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-12 06:40:03 +0000
commitbbfeab3b13b48c99cfa2f94c8c34bc3efef7faa9 (patch)
treef039c3d27a8a2d449ef1f5c456c752d83929c8bf /include/basic
parenta7198d38f0294ab5db04a7f4457565ea8b2c32f1 (diff)
loplugin:unusedmethods unused return value in include/basic
Change-Id: Ib1a006adaa92e257d40a20ff0d8beeb37e7c2fe0 Reviewed-on: https://gerrit.libreoffice.org/21360 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/basmgr.hxx4
-rw-r--r--include/basic/sbmod.hxx8
-rw-r--r--include/basic/sbstar.hxx2
-rw-r--r--include/basic/sbx.hxx4
-rw-r--r--include/basic/sbxform.hxx2
-rw-r--r--include/basic/sbxvar.hxx12
6 files changed, 16 insertions, 16 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx
index 8900f096bfa3..dac109f7ce08 100644
--- a/include/basic/basmgr.hxx
+++ b/include/basic/basmgr.hxx
@@ -171,7 +171,7 @@ public:
const css::uno::Reference< css::script::XPersistentLibraryContainer >&
GetScriptLibraryContainer() const;
- bool LoadLib( sal_uInt16 nLib );
+ void LoadLib( sal_uInt16 nLib );
bool RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage );
// Modify-Flag will be reset only during save.
@@ -208,7 +208,7 @@ private:
BASIC_DLLPRIVATE StarBASIC* GetStdLib() const;
BASIC_DLLPRIVATE StarBASIC* AddLib( SotStorage& rStorage, const OUString& rLibName, bool bReference );
- BASIC_DLLPRIVATE bool RemoveLib( sal_uInt16 nLib );
+ BASIC_DLLPRIVATE void RemoveLib( sal_uInt16 nLib );
BASIC_DLLPRIVATE bool HasLib( const OUString& rName ) const;
BASIC_DLLPRIVATE StarBASIC* CreateLibForLibContainer( const OUString& rLibName,
diff --git a/include/basic/sbmod.hxx b/include/basic/sbmod.hxx
index 95e1bdb043e3..dc07ba7cf2c1 100644
--- a/include/basic/sbmod.hxx
+++ b/include/basic/sbmod.hxx
@@ -75,8 +75,8 @@ protected:
void StartDefinitions();
SbMethod* GetMethod( const OUString&, SbxDataType );
SbProperty* GetProperty( const OUString&, SbxDataType );
- SbProcedureProperty* GetProcedureProperty( const OUString&, SbxDataType );
- SbIfaceMapperMethod* GetIfaceMapperMethod( const OUString&, SbMethod* );
+ void GetProcedureProperty( const OUString&, SbxDataType );
+ void GetIfaceMapperMethod( const OUString&, SbMethod* );
void EndDefinitions( bool=false );
void Run( SbMethod* );
void RunInit();
@@ -116,8 +116,8 @@ public:
void ClearAllBP();
// Store only image, no source (needed for new password protection)
- bool StoreBinaryData( SvStream&, sal_uInt16 nVer );
- bool LoadBinaryData( SvStream& );
+ void StoreBinaryData( SvStream&, sal_uInt16 nVer );
+ void LoadBinaryData( SvStream& );
bool ExceedsLegacyModuleSize();
void fixUpMethodStart( bool bCvtToLegacy, SbiImage* pImg = nullptr ) const;
bool HasExeCode();
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 0f59a5c8272b..5df1f1f4d74a 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -71,7 +71,7 @@ class BASIC_DLLPUBLIC StarBASIC : public SbxObject
protected:
bool CError( SbError, const OUString&, sal_Int32, sal_Int32, sal_Int32 );
private:
- BASIC_DLLPRIVATE bool RTError( SbError, sal_Int32, sal_Int32, sal_Int32 );
+ BASIC_DLLPRIVATE void RTError( SbError, sal_Int32, sal_Int32, sal_Int32 );
BASIC_DLLPRIVATE bool RTError( SbError, const OUString& rMsg, sal_Int32, sal_Int32, sal_Int32 );
BASIC_DLLPRIVATE sal_uInt16 BreakPoint( sal_Int32 nLine, sal_Int32 nCol1, sal_Int32 nCol2 );
BASIC_DLLPRIVATE sal_uInt16 StepPoint( sal_Int32 nLine, sal_Int32 nCol1, sal_Int32 nCol2 );
diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx
index 20249eda8f48..96dc1ac35fd3 100644
--- a/include/basic/sbx.hxx
+++ b/include/basic/sbx.hxx
@@ -74,8 +74,8 @@ class BASIC_DLLPUBLIC SbxInfo : public SvRefBase
void operator=(SbxInfo const&) = delete;
protected:
- bool LoadData( SvStream&, sal_uInt16 );
- bool StoreData( SvStream& ) const;
+ void LoadData( SvStream&, sal_uInt16 );
+ void StoreData( SvStream& ) const;
virtual ~SbxInfo();
public:
SbxInfo();
diff --git a/include/basic/sbxform.hxx b/include/basic/sbxform.hxx
index 4a2f04401b02..ff32b37c7fbb 100644
--- a/include/basic/sbxform.hxx
+++ b/include/basic/sbxform.hxx
@@ -133,7 +133,7 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
BASIC_DLLPRIVATE OUString GetNegFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE OUString Get0FormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE OUString GetNullFormatString( const OUString& sFormatStrg, bool & bFound );
- BASIC_DLLPRIVATE short AnalyseFormatString( const OUString& sFormatStrg,
+ BASIC_DLLPRIVATE void AnalyseFormatString( const OUString& sFormatStrg,
short& nNoOfDigitsLeft, short& nNoOfDigitsRight,
short& nNoOfOptionalDigitsLeft,
short& nNoOfExponentDigits,
diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx
index 46092c79ebf7..2f56372d9f3f 100644
--- a/include/basic/sbxvar.hxx
+++ b/include/basic/sbxvar.hxx
@@ -158,10 +158,10 @@ public:
bool PutLong( sal_Int32 );
bool PutSingle( float );
bool PutDouble( double );
- bool PutDate( double );
+ void PutDate( double );
bool PutBool( bool );
- bool PutErr( sal_uInt16 );
- bool PutStringExt( const OUString& ); // with extended analysis (International, "sal_True"/"sal_False")
+ void PutErr( sal_uInt16 );
+ void PutStringExt( const OUString& ); // with extended analysis (International, "sal_True"/"sal_False")
bool PutInt64( sal_Int64 );
bool PutUInt64( sal_uInt64 );
bool PutString( const OUString& );
@@ -170,12 +170,12 @@ public:
bool PutUShort( sal_uInt16 );
bool PutULong( sal_uInt32 );
bool PutEmpty();
- bool PutNull();
+ void PutNull();
// Special methods
- bool PutDecimal( css::bridge::oleautomation::Decimal& rAutomationDec );
+ void PutDecimal( css::bridge::oleautomation::Decimal& rAutomationDec );
bool PutDecimal( SbxDecimal* pDecimal ); // This function is needed for Windows build, don't remove
- bool fillAutomationDecimal( css::bridge::oleautomation::Decimal& rAutomationDec ) const;
+ void fillAutomationDecimal( css::bridge::oleautomation::Decimal& rAutomationDec ) const;
bool PutCurrency( const sal_Int64& );
// Interface for CDbl in Basic
static SbxError ScanNumIntnl( const OUString& rSrc, double& nVal, bool bSingle = false );