diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 11:33:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 13:27:45 +0200 |
commit | 41dc56df37596ff20c0476ae44fbd07b8b4678a1 (patch) | |
tree | 944bcf4a9f458e4ad1025651b7ac632e2d47c0dd /idl | |
parent | 50985d9b60cc03954bbae3dc931abb6aa18c4c78 (diff) |
loplugin:constparams codemaker,idl,idlc
Change-Id: Ic72b7525cfbfbd3c5afb12fe9ea814176e6c8c9d
Reviewed-on: https://gerrit.libreoffice.org/40126
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/inc/bastype.hxx | 6 | ||||
-rw-r--r-- | idl/inc/database.hxx | 2 | ||||
-rw-r--r-- | idl/inc/lex.hxx | 2 | ||||
-rw-r--r-- | idl/inc/parser.hxx | 8 | ||||
-rw-r--r-- | idl/inc/types.hxx | 2 | ||||
-rw-r--r-- | idl/source/objects/bastype.cxx | 6 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 2 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 2 | ||||
-rw-r--r-- | idl/source/prj/database.cxx | 2 | ||||
-rw-r--r-- | idl/source/prj/parser.cxx | 8 |
10 files changed, 20 insertions, 20 deletions
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx index df04891384e8..de659276472a 100644 --- a/idl/inc/bastype.hxx +++ b/idl/inc/bastype.hxx @@ -41,7 +41,7 @@ public: operator bool() const { return bVal; } bool IsSet() const { return bSet; } - bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ); + bool ReadSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm ); }; @@ -56,7 +56,7 @@ public: void setString(const OString& rStr) { m_aStr = rStr; } const OString& getString() const { return m_aStr; } - bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ); + bool ReadSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm ); bool IsSet() const { return !m_aStr.isEmpty() || nValue != 0; @@ -68,7 +68,7 @@ public: }; -bool ReadStringSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm, OString& aString ); +bool ReadStringSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm, OString& aString ); #endif // INCLUDED_IDL_INC_BASTYPE_HXX diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx index 4444110b6172..7994aa51463a 100644 --- a/idl/inc/database.hxx +++ b/idl/inc/database.hxx @@ -114,7 +114,7 @@ public: void Write(const OString& rText); void WriteError( SvTokenStream & rInStm ); - void SetError( const OString& rError, SvToken& rTok ); + void SetError( const OString& rError, SvToken const & rTok ); void SetAndWriteError( SvTokenStream & rInStm, const OString& rError ); void Push( SvMetaObject * pObj ); sal_uInt32 GetUniqueId() { return ++nUniqueId; } diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx index 8a71349971c5..4fa4ff2be648 100644 --- a/idl/inc/lex.hxx +++ b/idl/inc/lex.hxx @@ -85,7 +85,7 @@ public: void SetHash( SvStringHashEntry * pHashP ) { pHash = pHashP; nType = SVTOKENTYPE::HashId; } - bool Is( SvStringHashEntry * pEntry ) const + bool Is( SvStringHashEntry const * pEntry ) const { return IsIdentifierHash() && pHash == pEntry; } }; diff --git a/idl/inc/parser.hxx b/idl/inc/parser.hxx index cc2696b1e7c7..811908f073e8 100644 --- a/idl/inc/parser.hxx +++ b/idl/inc/parser.hxx @@ -56,15 +56,15 @@ public: SvMetaClass* ReadKnownClass(); SvMetaType* ReadKnownType(); void Read(char cChar); - bool ReadIfBoolAttribute( SvBOOL&, SvStringHashEntry* pName); - bool ReadIfIdAttribute( SvIdentifier& rIdentifier, SvStringHashEntry* pName ); + bool ReadIfBoolAttribute( SvBOOL&, SvStringHashEntry const * pName); + bool ReadIfIdAttribute( SvIdentifier& rIdentifier, SvStringHashEntry const * pName ); bool ReadIf(char cChar); void ReadDelimiter(); bool ReadIfDelimiter(); OString ReadIdentifier(); OString ReadString(); - void Read(SvStringHashEntry*); - bool ReadIf(SvStringHashEntry*); + void Read(SvStringHashEntry const *); + bool ReadIf(SvStringHashEntry const *); }; #endif // INCLUDED_IDL_INC_PARSER_HXX diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx index 8c2bc8b9cf33..fa0c2bb11730 100644 --- a/idl/inc/types.hxx +++ b/idl/inc/types.hxx @@ -55,7 +55,7 @@ class SvMetaType : public SvMetaReference MetaTypeType nType; bool bIsItem; - void WriteSfxItem( const OString& rItemName, SvIdlDataBase & rBase, + void WriteSfxItem( const OString& rItemName, SvIdlDataBase const & rBase, SvStream & rOutStm ); protected: bool ReadHeaderSvIdl( SvTokenStream & rInStm ); diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index e90ff84e1678..5a34b1c381ea 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -26,7 +26,7 @@ #include <database.hxx> #include <tools/stream.hxx> -bool SvBOOL::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) +bool SvBOOL::ReadSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); @@ -49,7 +49,7 @@ bool SvBOOL::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) return false; } -bool SvIdentifier::ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm ) +bool SvIdentifier::ReadSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); @@ -94,7 +94,7 @@ void SvIdentifier::ReadSvIdl( SvIdlDataBase & rBase, rInStm.Seek( nTokPos ); } -bool ReadStringSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm, OString& aRetString ) +bool ReadStringSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm, OString& aRetString ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 20ebd4c5d4c9..ba67221f229d 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -348,7 +348,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList) } -static OString MakeSlotName( SvStringHashEntry * pEntry ) +static OString MakeSlotName( SvStringHashEntry const * pEntry ) { return "SfxSlotMode::" + pEntry->GetName().toAsciiUpperCase(); }; diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index f90145f7cd56..3dbe7ecd9825 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -218,7 +218,7 @@ sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray ) } void SvMetaType::WriteSfxItem( - const OString& rItemName, SvIdlDataBase& rBase, SvStream& rOutStm ) + const OString& rItemName, SvIdlDataBase const & rBase, SvStream& rOutStm ) { WriteStars( rOutStm ); OString aVarName = " a" + rItemName + "_Impl"; diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index 5ecace5416ea..1a1057e797f2 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -85,7 +85,7 @@ SvRefMemberList<SvMetaType *>& SvIdlDataBase::GetTypeList() return aTypeList; } -void SvIdlDataBase::SetError( const OString& rError, SvToken& rTok ) +void SvIdlDataBase::SetError( const OString& rError, SvToken const & rTok ) { if( rTok.GetLine() > 10000 ) aError.SetText( "line count overflow" ); diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx index 2688d2d24938..5701f4f93cd0 100644 --- a/idl/source/prj/parser.cxx +++ b/idl/source/prj/parser.cxx @@ -476,7 +476,7 @@ SvMetaType * SvIdlParser::ReadKnownType() throw SvParseException( rInStm, "wrong typedef: "); } -bool SvIdlParser::ReadIfBoolAttribute( SvBOOL& rBool, SvStringHashEntry * pName ) +bool SvIdlParser::ReadIfBoolAttribute( SvBOOL& rBool, SvStringHashEntry const * pName ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); @@ -499,7 +499,7 @@ bool SvIdlParser::ReadIfBoolAttribute( SvBOOL& rBool, SvStringHashEntry * pName return false; } -bool SvIdlParser::ReadIfIdAttribute( SvIdentifier& rIdentifier, SvStringHashEntry * pName ) +bool SvIdlParser::ReadIfIdAttribute( SvIdentifier& rIdentifier, SvStringHashEntry const * pName ) { sal_uInt32 nTokPos = rInStm.Tell(); SvToken& rTok = rInStm.GetToken_Next(); @@ -572,14 +572,14 @@ bool SvIdlParser::ReadIf(char cChar) return false; } -void SvIdlParser::Read(SvStringHashEntry* entry) +void SvIdlParser::Read(SvStringHashEntry const * entry) { if( !rInStm.GetToken().Is(entry) ) throw SvParseException("expected " + entry->GetName(), rInStm.GetToken()); rInStm.GetToken_Next(); } -bool SvIdlParser::ReadIf(SvStringHashEntry* entry) +bool SvIdlParser::ReadIf(SvStringHashEntry const * entry) { if( rInStm.GetToken().Is(entry) ) { |