diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 12:23:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-19 08:44:52 +0200 |
commit | d8ac55e3e53564aca4b0bade5a5b5cb01b4519b1 (patch) | |
tree | eccc16dc658bdcc8c3e47b2656d9481af73f89fb /include | |
parent | 488db385bd14597b2c14410b855749bc5c5b9441 (diff) |
loplugin:constfields in unotools..uui
Change-Id: I9d9cfd107bea9556cbc505e977838fb13bd25e2a
Reviewed-on: https://gerrit.libreoffice.org/60573
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/configitem.hxx | 2 | ||||
-rw-r--r-- | include/unotools/intlwrapper.hxx | 2 | ||||
-rw-r--r-- | include/unotools/streamhelper.hxx | 2 | ||||
-rw-r--r-- | include/unotools/tempfile.hxx | 2 | ||||
-rw-r--r-- | include/unotools/transliterationwrapper.hxx | 2 | ||||
-rw-r--r-- | include/unotools/viewoptions.hxx | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx index 302fa0bdde5b..e49e7a552709 100644 --- a/include/unotools/configitem.hxx +++ b/include/unotools/configitem.hxx @@ -77,7 +77,7 @@ namespace utl m_xHierarchyAccess; css::uno::Reference< css::util::XChangesListener > xChangeLstnr; - ConfigItemMode m_nMode; + ConfigItemMode const m_nMode; bool m_bIsModified; bool m_bEnableInternalNotification; sal_Int16 m_nInValueChange; diff --git a/include/unotools/intlwrapper.hxx b/include/unotools/intlwrapper.hxx index ffcb3313b349..cf1ea94682f4 100644 --- a/include/unotools/intlwrapper.hxx +++ b/include/unotools/intlwrapper.hxx @@ -48,7 +48,7 @@ class UNOTOOLS_DLLPUBLIC IntlWrapper { private: - LanguageTag maLanguageTag; + LanguageTag const maLanguageTag; css::uno::Reference< css::uno::XComponentContext > m_xContext; std::unique_ptr<LocaleDataWrapper> pLocaleData; diff --git a/include/unotools/streamhelper.hxx b/include/unotools/streamhelper.hxx index 3758aec86286..99e9e708aa97 100644 --- a/include/unotools/streamhelper.hxx +++ b/include/unotools/streamhelper.hxx @@ -38,7 +38,7 @@ class UNOTOOLS_DLLPUBLIC OInputStreamHelper : public cppu::WeakImplHelper<css::i ::osl::Mutex m_aMutex; SvLockBytesRef m_xLockBytes; sal_uInt64 m_nActPos; - sal_Int32 m_nAvailable; // this is typically the chunk(buffer) size + sal_Int32 const m_nAvailable; // this is typically the chunk(buffer) size public: OInputStreamHelper(const SvLockBytesRef& _xLockBytes, diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx index a70f7d277fbf..57f0fef8a940 100644 --- a/include/unotools/tempfile.hxx +++ b/include/unotools/tempfile.hxx @@ -48,7 +48,7 @@ class UNOTOOLS_DLLPUBLIC TempFile OUString aName; std::unique_ptr<SvStream> pStream; - bool bIsDirectory; + bool const bIsDirectory; bool bKillingFileEnabled; public: diff --git a/include/unotools/transliterationwrapper.hxx b/include/unotools/transliterationwrapper.hxx index 0726d6caf139..7afdbf44411e 100644 --- a/include/unotools/transliterationwrapper.hxx +++ b/include/unotools/transliterationwrapper.hxx @@ -39,7 +39,7 @@ class UNOTOOLS_DLLPUBLIC TransliterationWrapper { css::uno::Reference< css::i18n::XExtendedTransliteration > xTrans; LanguageTag aLanguageTag; - TransliterationFlags nType; + TransliterationFlags const nType; mutable bool bFirstCall; TransliterationWrapper( const TransliterationWrapper& ) = delete; diff --git a/include/unotools/viewoptions.hxx b/include/unotools/viewoptions.hxx index 83bc1922b965..0948925756d2 100644 --- a/include/unotools/viewoptions.hxx +++ b/include/unotools/viewoptions.hxx @@ -235,8 +235,8 @@ class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtViewOptions : public utl::detail::Op /// specify which list of views in configuration is used! This can't be a static value!!! /// ... because we need this value to work with right static data container. - EViewType m_eViewType; - OUString m_sViewName; + EViewType const m_eViewType; + OUString const m_sViewName; /*Attention |