diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-15 13:17:16 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-23 13:08:48 +0200 |
commit | 0a7b739cc33a56339a2bf0f8f0253f9402cabd35 (patch) | |
tree | 893c99038c2474391bd474e356ac5edad813ba22 /xmlhelp | |
parent | a57a1494a35e188845b6df3361680d4ed3149427 (diff) |
loplugin:staticmethods
Change-Id: I2ee91d07cf9d46cdc385a4db8473550b05e2f0ad
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/inc/tvread.hxx | 30 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.hxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.hxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.cxx | 8 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/provider.hxx | 16 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 10 |
6 files changed, 35 insertions, 35 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/tvread.hxx b/xmlhelp/source/cxxhelp/inc/tvread.hxx index d72aa9a7ebfb..757571064b0f 100644 --- a/xmlhelp/source/cxxhelp/inc/tvread.hxx +++ b/xmlhelp/source/cxxhelp/inc/tvread.hxx @@ -244,31 +244,31 @@ namespace treeview { private: std::vector< rtl::Reference< TVRead > > Elements; - ConfigData init( + static ConfigData init( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext ); - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > + static ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getConfiguration( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ) const; + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); - ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > + static ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > getHierAccess( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxProvider, - const char* file ) const; + const char* file ); - OUString - getKey( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >& xHierAccess, - const char* key ) const; + static OUString + getKey( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >& xHierAccess, + const char* key ); - bool - getBooleanKey( + static bool + getBooleanKey( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >& xHierAccess, - const char* key) const; + const char* key); - void subst( OUString& instpath ) const; + static void subst( OUString& instpath ); - bool SearchAndInsert(TVDom* p, TVDom* tvDom); + bool SearchAndInsert(TVDom* p, TVDom* tvDom); - void Check(TVDom* tvDom); + void Check(TVDom* tvDom); }; // end class TVChildTarget @@ -287,7 +287,7 @@ namespace treeview { void init(); private: - com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage + static com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage ( const com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > xPackage, com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >& o_xParentPackageBundle ); diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index 29eeea1b7198..95f0be7e3868 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -231,7 +231,7 @@ namespace chelp { * The returned string maybe empty */ - OUString country( const OUString& Language ); + static OUString country( const OUString& Language ); void replaceName( OUString& oustring ) const; @@ -349,7 +349,7 @@ namespace chelp { void init(); private: - com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage + static com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > implGetHelpPackageFromPackage ( const com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > xPackage, com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >& o_xParentPackageBundle ); diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx index 7bf3fe11c2d9..bdfaa38d84dd 100644 --- a/xmlhelp/source/cxxhelp/provider/db.hxx +++ b/xmlhelp/source/cxxhelp/provider/db.hxx @@ -79,7 +79,7 @@ namespace helpdatafileproxy { int m_nItRead; int m_iItPos; - bool implReadLenAndData( const char* pData, int& riPos, HDFData& rValue ); + static bool implReadLenAndData( const char* pData, int& riPos, HDFData& rValue ); public: //HDFHelp must get a fileURL which can then directly be used by simple file access. diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 0aa8584613d0..781554d8a445 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -368,7 +368,7 @@ ContentProvider::getConfiguration() const uno::Reference< container::XHierarchicalNameAccess > ContentProvider::getHierAccess( const uno::Reference< lang::XMultiServiceFactory >& sProvider, - const char* file ) const + const char* file ) { uno::Reference< container::XHierarchicalNameAccess > xHierAccess; @@ -399,7 +399,7 @@ ContentProvider::getHierAccess( OUString ContentProvider::getKey( const uno::Reference< container::XHierarchicalNameAccess >& xHierAccess, - const char* key ) const + const char* key ) { OUString instPath; if( xHierAccess.is() ) @@ -422,7 +422,7 @@ ContentProvider::getKey( bool ContentProvider::getBooleanKey( const uno::Reference< container::XHierarchicalNameAccess >& xHierAccess, - const char* key ) const + const char* key ) { bool ret = false; if( xHierAccess.is() ) @@ -442,7 +442,7 @@ ContentProvider::getBooleanKey( return ret; } -void ContentProvider::subst( OUString& instpath ) const +void ContentProvider::subst( OUString& instpath ) { SvtPathOptions aOptions; instpath = aOptions.SubstituteVariable( instpath ); diff --git a/xmlhelp/source/cxxhelp/provider/provider.hxx b/xmlhelp/source/cxxhelp/provider/provider.hxx index 5a71b07159b4..0e3994d136fb 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.hxx +++ b/xmlhelp/source/cxxhelp/provider/provider.hxx @@ -160,21 +160,21 @@ namespace chelp { ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getConfiguration() const; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > + static ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess > getHierAccess( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& sProvider, - const char* file ) const; + const char* file ); - OUString + static OUString getKey( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >& xHierAccess, - const char* key ) const; + const char* key ); - bool - getBooleanKey( + static bool + getBooleanKey( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >& xHierAccess, - const char* key) const; + const char* key); - void subst( OUString& instpath ) const; + static void subst( OUString& instpath ); }; } diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 5d6ebbd1f71c..ea779f6eee36 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -769,7 +769,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) } Reference< XMultiServiceFactory > -TVChildTarget::getConfiguration(const Reference< XComponentContext >& rxContext) const +TVChildTarget::getConfiguration(const Reference< XComponentContext >& rxContext) { Reference< XMultiServiceFactory > xProvider; if( rxContext.is() ) @@ -789,7 +789,7 @@ TVChildTarget::getConfiguration(const Reference< XComponentContext >& rxContext) Reference< XHierarchicalNameAccess > TVChildTarget::getHierAccess( const Reference< XMultiServiceFactory >& sProvider, - const char* file ) const + const char* file ) { Reference< XHierarchicalNameAccess > xHierAccess; @@ -818,7 +818,7 @@ TVChildTarget::getHierAccess( const Reference< XMultiServiceFactory >& sProvider OUString TVChildTarget::getKey( const Reference< XHierarchicalNameAccess >& xHierAccess, - const char* key ) const + const char* key ) { OUString instPath; if( xHierAccess.is() ) @@ -840,7 +840,7 @@ TVChildTarget::getKey( const Reference< XHierarchicalNameAccess >& xHierAccess, bool TVChildTarget::getBooleanKey(const Reference< XHierarchicalNameAccess >& xHierAccess, - const char* key) const + const char* key) { bool ret = false; if( xHierAccess.is() ) @@ -860,7 +860,7 @@ TVChildTarget::getBooleanKey(const Reference< return ret; } -void TVChildTarget::subst( OUString& instpath ) const +void TVChildTarget::subst( OUString& instpath ) { SvtPathOptions aOptions; instpath = aOptions.SubstituteVariable( instpath ); |