summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-23 09:44:28 +0200
committerNoel Grandin <noel@peralex.com>2016-03-23 10:19:43 +0200
commit5b79f5a4e5126a427c14c46e65b3a0b898024f60 (patch)
tree3202be5fd301b5bf526faf5a5ee05582be19c9bb /idl
parent1e509513d95e810d44246e65fe3d1547772bc06b (diff)
loplugin:constantparam in idl
Change-Id: I2fa4c74c9709d3a8495341f00d974ba960c18deb
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/module.hxx5
-rw-r--r--idl/source/objects/module.cxx3
-rw-r--r--idl/source/prj/database.cxx3
-rw-r--r--idl/source/prj/parser.cxx2
4 files changed, 4 insertions, 9 deletions
diff --git a/idl/inc/module.hxx b/idl/inc/module.hxx
index 93f335a23449..dad17bc96105 100644
--- a/idl/inc/module.hxx
+++ b/idl/inc/module.hxx
@@ -25,13 +25,10 @@
class SvMetaModule : public SvMetaObject
{
- bool bImported;
public:
SvRefMemberList<SvMetaClass *> aClassList;
- SvMetaModule( bool bImported );
-
- bool IsImported() const { return bImported; }
+ SvMetaModule();
void WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm );
};
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx
index 197666de85b9..06607559b56a 100644
--- a/idl/source/objects/module.cxx
+++ b/idl/source/objects/module.cxx
@@ -26,8 +26,7 @@
#include <osl/file.hxx>
-SvMetaModule::SvMetaModule( bool bImp )
- : bImported( bImp )
+SvMetaModule::SvMetaModule()
{
}
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 4926b59869fa..d001ee4a4386 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -461,8 +461,7 @@ bool SvIdlWorkingBase::WriteSfx( SvStream & rOutStm )
for( n = 0; n < GetModuleList().size(); n++ )
{
SvMetaModule * pModule = GetModuleList()[n];
- if( !pModule->IsImported() )
- pModule->WriteSfx( *this, aTmpStm );
+ pModule->WriteSfx( *this, aTmpStm );
aTmpStm.Seek( 0 );
}
for( n = 0; n < aUsedTypes.size(); n++ )
diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx
index c1a309679909..48e75741c90d 100644
--- a/idl/source/prj/parser.cxx
+++ b/idl/source/prj/parser.cxx
@@ -38,7 +38,7 @@ void SvIdlParser::ReadSvIdl( const OUString & rPath )
return;
Read( SvHash_module() );
- tools::SvRef<SvMetaModule> aModule = new SvMetaModule( false/*bImported*/ );
+ tools::SvRef<SvMetaModule> aModule = new SvMetaModule;
ReadModuleHeader(*aModule);
rBase.GetModuleList().push_back( aModule );
}