diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-25 17:12:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-26 10:59:42 +0200 |
commit | d9b6f4fd38da9f875b78f6ff365bcb16fb2c8e8b (patch) | |
tree | 7d38b04189cfa4fd4f4f91324fc6c95f360f080c /include/unotools | |
parent | 084f454e8caa2d9e43f7bdea098538bfb87423d8 (diff) |
loplugin:constmethods in unotools
Change-Id: I13df4e184a826682f34a1d9e974b601397ba4a3d
Reviewed-on: https://gerrit.libreoffice.org/43865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/extendedsecurityoptions.hxx | 2 | ||||
-rw-r--r-- | include/unotools/lingucfg.hxx | 6 | ||||
-rw-r--r-- | include/unotools/localedatawrapper.hxx | 4 | ||||
-rw-r--r-- | include/unotools/moduleoptions.hxx | 2 | ||||
-rw-r--r-- | include/unotools/syslocaleoptions.hxx | 2 | ||||
-rw-r--r-- | include/unotools/tempfile.hxx | 2 | ||||
-rw-r--r-- | include/unotools/textsearch.hxx | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/include/unotools/extendedsecurityoptions.hxx b/include/unotools/extendedsecurityoptions.hxx index 7eb3d80a7a9d..8a5f271f43ce 100644 --- a/include/unotools/extendedsecurityoptions.hxx +++ b/include/unotools/extendedsecurityoptions.hxx @@ -55,7 +55,7 @@ class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtExtendedSecurityOptions : public utl SvtExtendedSecurityOptions(); virtual ~SvtExtendedSecurityOptions() override; - OpenHyperlinkMode GetOpenHyperlinkMode(); + OpenHyperlinkMode GetOpenHyperlinkMode() const; private: diff --git a/include/unotools/lingucfg.hxx b/include/unotools/lingucfg.hxx index eefb89e2ec62..cb66cb3aaf34 100644 --- a/include/unotools/lingucfg.hxx +++ b/include/unotools/lingucfg.hxx @@ -158,11 +158,11 @@ public: // borrowed from utl::ConfigItem css::uno::Sequence< OUString > - GetNodeNames( const OUString &rNode ); + GetNodeNames( const OUString &rNode ) const; css::uno::Sequence< css::uno::Any > GetProperties( - const css::uno::Sequence< OUString > &rNames ); + const css::uno::Sequence< OUString > &rNames ) const; bool ReplaceSetProperties( @@ -195,7 +195,7 @@ public: css::uno::Sequence< OUString > GetDisabledDictionaries() const; - std::vector< SvtLinguConfigDictionaryEntry > GetActiveDictionariesByFormat( const OUString &rFormatName ); + std::vector< SvtLinguConfigDictionaryEntry > GetActiveDictionariesByFormat( const OUString &rFormatName ) const; // functions returning file URLs to the respective images (if found) and empty string otherwise OUString GetSpellAndGrammarContextSuggestionImage( const OUString &rServiceImplName ) const; diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx index 018c7babe456..a5d675988a75 100644 --- a/include/unotools/localedatawrapper.hxx +++ b/include/unotools/localedatawrapper.hxx @@ -99,10 +99,10 @@ class UNOTOOLS_DLLPUBLIC LocaleDataWrapper void scanCurrFormatImpl( const OUString& rCode, sal_Int32 nStart, sal_Int32& nSign, sal_Int32& nPar, sal_Int32& nNum, - sal_Int32& nBlank, sal_Int32& nSym ); + sal_Int32& nBlank, sal_Int32& nSym ) const; void getDateOrdersImpl(); - DateOrder scanDateOrderImpl( const OUString& rCode ); + DateOrder scanDateOrderImpl( const OUString& rCode ) const; void getDefaultCalendarImpl(); void getSecondaryCalendarImpl(); diff --git a/include/unotools/moduleoptions.hxx b/include/unotools/moduleoptions.hxx index 3dcd8321d0e7..fce65d40f814 100644 --- a/include/unotools/moduleoptions.hxx +++ b/include/unotools/moduleoptions.hxx @@ -153,7 +153,7 @@ class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtModuleOptions : public utl::detail:: static OUString GetFactoryShortName(EFactory eFactory); - OUString GetDefaultModuleName(); + OUString GetDefaultModuleName() const; bool IsMath () const; bool IsChart () const; diff --git a/include/unotools/syslocaleoptions.hxx b/include/unotools/syslocaleoptions.hxx index 826025983cdd..69a093d9bdb3 100644 --- a/include/unotools/syslocaleoptions.hxx +++ b/include/unotools/syslocaleoptions.hxx @@ -51,7 +51,7 @@ public: // ConfigItem methods - bool IsModified(); + bool IsModified() const; void Commit(); /** Add a listener to react on config changes diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx index 31c218c6ef80..9f5ac4c45dab 100644 --- a/include/unotools/tempfile.hxx +++ b/include/unotools/tempfile.hxx @@ -87,7 +87,7 @@ public: Returns the URL of the tempfile object. If you want to have the system path file name, use the GetFileName() method of this object */ - OUString const & GetURL(); + OUString const & GetURL() const; /** Returns the system path name of the tempfile in host notation diff --git a/include/unotools/textsearch.hxx b/include/unotools/textsearch.hxx index dfe563d831d0..b7b3250253af 100644 --- a/include/unotools/textsearch.hxx +++ b/include/unotools/textsearch.hxx @@ -220,7 +220,7 @@ public: const css::lang::Locale& rLocale ); /* replace back references in the replace string by the sub expressions from the search result */ - void ReplaceBackReferences( OUString& rReplaceStr, const OUString &rStr, const css::util::SearchResult& rResult ); + void ReplaceBackReferences( OUString& rReplaceStr, const OUString &rStr, const css::util::SearchResult& rResult ) const; /** Upgrade SearchOptions to SearchOptions2 for places that don't handle SearchOptions2 yet. Better fix your module if you want to support |