summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 11:45:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 13:06:54 +0100
commit9ee60319c675087486907707c8a2b18b5c9dc9fc (patch)
treed4accdcfe604efa91518f37a1283ea436ecc65b7 /idl
parent4eec79bb376b64a9a90de4b6540c90776d3dba32 (diff)
loplugin:constmethod in idl,helpcompiler
Change-Id: I9b328fc0a3ebdd15a646ee6dab800ffbadb1aaef Reviewed-on: https://gerrit.libreoffice.org/44050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/database.hxx2
-rw-r--r--idl/inc/slot.hxx4
-rw-r--r--idl/inc/types.hxx2
-rw-r--r--idl/source/objects/slot.cxx4
-rw-r--r--idl/source/objects/types.cxx2
-rw-r--r--idl/source/prj/database.cxx3
6 files changed, 9 insertions, 8 deletions
diff --git a/idl/inc/database.hxx b/idl/inc/database.hxx
index 2d48204b5f57..bc4ef2a5e27e 100644
--- a/idl/inc/database.hxx
+++ b/idl/inc/database.hxx
@@ -112,7 +112,7 @@ public:
void SetPath(const OUString &s) { aPath = s; }
SvRefMemberList<SvMetaObject *>& GetStack() { return aContextStack; }
- void Write(const OString& rText);
+ void Write(const OString& rText) const;
void WriteError( SvTokenStream & rInStm );
void SetError( const OString& rError, SvToken const & rTok );
void SetAndWriteError( SvTokenStream & rInStm, const OString& rError );
diff --git a/idl/inc/slot.hxx b/idl/inc/slot.hxx
index d9ac77a591f5..1aa6ebca6913 100644
--- a/idl/inc/slot.hxx
+++ b/idl/inc/slot.hxx
@@ -120,7 +120,7 @@ public:
virtual void Insert( SvSlotElementList& ) override;
void WriteSlotStubs( const OString& rShellName,
ByteStringList & rList,
- SvStream & rOutStm );
+ SvStream & rOutStm ) const;
sal_uInt16 WriteSlotMap( const OString& rShellName,
sal_uInt16 nCount,
SvSlotElementList&,
@@ -128,7 +128,7 @@ public:
SvIdlDataBase & rBase,
SvStream & rOutStm );
sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase,
- SvStream & rOutStm );
+ SvStream & rOutStm ) const;
};
#endif // INCLUDED_IDL_INC_SLOT_HXX
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx
index c4ceed384fdf..0d7de1c59a63 100644
--- a/idl/inc/types.hxx
+++ b/idl/inc/types.hxx
@@ -43,7 +43,7 @@ public:
virtual bool Test( SvTokenStream & rInStm ) override;
virtual bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm ) override;
- sal_uLong MakeSfx( OStringBuffer& rAtrrArray );
+ sal_uLong MakeSfx( OStringBuffer& rAtrrArray ) const;
virtual void Insert( SvSlotElementList& );
};
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index ff32774ae4c1..2db9e130fd76 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -355,7 +355,7 @@ static OString MakeSlotName( SvStringHashEntry const * pEntry )
void SvMetaSlot::WriteSlotStubs( const OString& rShellName,
ByteStringList & rList,
- SvStream & rOutStm )
+ SvStream & rOutStm ) const
{
if ( !GetExport() && !GetHidden() )
return;
@@ -595,7 +595,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount,
rOutStm.WriteCharPtr( " )," ) << endl;
}
-sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rOutStm )
+sal_uInt16 SvMetaSlot::WriteSlotParamArray( SvIdlDataBase & rBase, SvStream & rOutStm ) const
{
if ( !GetExport() && !GetHidden() )
return 0;
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index 3dbe7ecd9825..d79efe81fc43 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -96,7 +96,7 @@ bool SvMetaAttribute::ReadSvIdl( SvIdlDataBase & rBase,
return bOk;
}
-sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray )
+sal_uLong SvMetaAttribute::MakeSfx( OStringBuffer& rAttrArray ) const
{
SvMetaType * pType = GetType();
DBG_ASSERT( pType, "no type for attribute" );
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 7dd941ae91cd..46c7b576f5bd 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -366,7 +366,8 @@ SvMetaClass * SvIdlDataBase::FindKnownClass( const OString& aName )
}
return nullptr;
}
-void SvIdlDataBase::Write(const OString& rText)
+
+void SvIdlDataBase::Write(const OString& rText) const
{
if( nVerbosity != 0 )
fprintf( stdout, "%s", rText.getStr() );