summaryrefslogtreecommitdiff
path: root/rsc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-14 16:31:56 +0200
committerNoel Grandin <noel@peralex.com>2016-01-15 09:36:41 +0200
commitf19e32b101d56ceb7215a6a9d45d39a2cd264189 (patch)
tree660e03934bc5a036c7538945ab60b2267e7a58c6 /rsc/inc
parent802765dbe5f79748453c985da08824fb9ddefe11 (diff)
loplugin:unusedmethods unused return value in rsc
Change-Id: I6301aed80083c21e26851817220de6e135eb4da7
Diffstat (limited to 'rsc/inc')
-rw-r--r--rsc/inc/rscclobj.hxx4
-rw-r--r--rsc/inc/rscconst.hxx2
-rw-r--r--rsc/inc/rscdb.hxx8
-rw-r--r--rsc/inc/rscdef.hxx4
-rw-r--r--rsc/inc/rsckey.hxx2
-rw-r--r--rsc/inc/rscrange.hxx7
6 files changed, 12 insertions, 15 deletions
diff --git a/rsc/inc/rscclobj.hxx b/rsc/inc/rscclobj.hxx
index d7222a6d7e01..46aa38348cfe 100644
--- a/rsc/inc/rscclobj.hxx
+++ b/rsc/inc/rscclobj.hxx
@@ -70,9 +70,9 @@ public:
ObjNode* pObjBiTree; // Zeiger auf Objektbaum
RefNode( Atom nTyp );
sal_uInt32 GetId() const override;
- bool Insert( RefNode* pTN ) //< insert a new node in the b-tree
+ void Insert( RefNode* pTN ) //< insert a new node in the b-tree
{
- return IdNode::Insert( static_cast<IdNode *>(pTN) );
+ IdNode::Insert( static_cast<IdNode *>(pTN) );
}
bool PutObjNode( ObjNode * pPutObject );
diff --git a/rsc/inc/rscconst.hxx b/rsc/inc/rscconst.hxx
index df2b16ff56d5..1ed6b47e3075 100644
--- a/rsc/inc/rscconst.hxx
+++ b/rsc/inc/rscconst.hxx
@@ -39,7 +39,7 @@ public:
virtual ~RscConst();
virtual RSCCLASS_TYPE GetClassType() const override;
// sets the allowed values
- ERRTYPE SetConstant( Atom nVarName, sal_Int32 lValue );
+ void SetConstant( Atom nVarName, sal_Int32 lValue );
bool GetConstValue( Atom nConstId, sal_Int32 * pVal ) const;
bool GetValueConst( sal_Int32 nValue, Atom * pConstId ) const;
sal_uInt32 GetConstPos( Atom nConstId );
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index 1a164cb7ccc4..2c2530175c2d 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -151,7 +151,7 @@ class RscTypCont
inline void SETCONST( RscConst *p1, const char * p2, ToolBoxItemType p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
inline void SETCONST( RscConst *p1, const char * p2, ButtonType p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
inline void SETCONST( RscConst *p1, const char * p2, WindowAlign p3 ) { SETCONST(p1, p2, static_cast<sal_uInt32>(p3)); }
- RscEnum * InitLangType();
+ void InitLangType();
RscEnum * InitFieldUnitsType();
RscEnum * InitColor();
RscEnum * InitMapUnit();
@@ -263,11 +263,9 @@ public:
RSCBYTEORDER_TYPE GetByteOrder() const { return nByteOrder; }
rtl_TextEncoding GetSourceCharSet() const { return nSourceCharSet; }
- rtl_TextEncoding SetSourceCharSet( rtl_TextEncoding aCharSet )
+ void SetSourceCharSet( rtl_TextEncoding aCharSet )
{
- rtl_TextEncoding aOld = nSourceCharSet;
nSourceCharSet = aCharSet;
- return aOld;
}
OString GetSearchPath() const { return aSearchPath; }
void SetSysSearchPath( const OString& rStr ) { aSysSearchPath = rStr; }
@@ -285,7 +283,7 @@ public:
ERRTYPE WriteRc( WriteRcContext& rContext );
void WriteSrc( FILE * fOutput, sal_uLong nFileIndex,
bool bName = true );
- sal_uInt32 PutTranslatorKey( sal_uInt64 nKey );
+ void PutTranslatorKey( sal_uInt64 nKey );
void IncFilePos( sal_uLong nOffset ){ nFilePos += nOffset; }
};
diff --git a/rsc/inc/rscdef.hxx b/rsc/inc/rscdef.hxx
index 60ce424e636b..41e22f659a4d 100644
--- a/rsc/inc/rscdef.hxx
+++ b/rsc/inc/rscdef.hxx
@@ -143,7 +143,7 @@ protected:
public:
RscDefine * Search( const char * );
sal_uLong GetFileKey() const { return lFileKey; }
- bool Evaluate();
+ void Evaluate();
sal_Int32 GetNumber() const { return lId; }
OString GetMacro();
};
@@ -215,7 +215,7 @@ public:
RscFile();
~RscFile();
- bool InsertDependFile( sal_uLong lDepFile, size_t lPos );
+ void InsertDependFile( sal_uLong lDepFile, size_t lPos );
bool Depend( sal_uLong lDepend, sal_uLong lFree );
void SetIncFlag(){ bIncFile = true; };
bool IsIncFile(){ return bIncFile; };
diff --git a/rsc/inc/rsckey.hxx b/rsc/inc/rsckey.hxx
index 79a613e3994a..4ca2812ff69d 100644
--- a/rsc/inc/rsckey.hxx
+++ b/rsc/inc/rsckey.hxx
@@ -43,7 +43,7 @@ public:
Atom Put( Atom nName, sal_uInt32 nTyp, sal_IntPtr nValue );
Atom Put( const char * pName, sal_uInt32 nTyp, sal_IntPtr nValue );
Atom Put( const char * pName, sal_uInt32 nTyp );
- Atom Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
+ void Put( Atom nName, sal_uInt32 nTyp, RscTop * pClass );
// if true, it was found
bool Get( Atom nName, KEY_STRUCT * pEle );
diff --git a/rsc/inc/rscrange.hxx b/rsc/inc/rscrange.hxx
index 360edaa63b87..3bcd663df88c 100644
--- a/rsc/inc/rscrange.hxx
+++ b/rsc/inc/rscrange.hxx
@@ -40,7 +40,7 @@ public:
virtual RSCCLASS_TYPE GetClassType() const override;
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) override;
// sets the allowed range
- ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
+ void SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
// returns the class size in bytes
sal_uInt32 Size() override { return nSize; }
// an assignment to a variable
@@ -78,7 +78,7 @@ public:
virtual RSCCLASS_TYPE GetClassType() const override;
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) override;
// sets the allowed range
- ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
+ void SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum );
// returns the class size in bytes
sal_uInt32 Size() override { return nSize; }
// an assignment to a variable
@@ -120,11 +120,10 @@ public:
RscIdRange( Atom nId, sal_uInt32 nTypId );
virtual RSCCLASS_TYPE GetClassType() const override;
// sets the allowed range
- ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
+ void SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum )
{
nMin = nMinimum;
nMax = nMaximum;
- return ERR_OK;
}
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) override;
void Destroy( const RSCINST & rInst ) override;