From 07c4aa4298f062cee1894b80ef82e76d5ffcf4c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 1 Oct 2018 14:30:12 +0200 Subject: loplugin:constfields in svtools Change-Id: I91553f89d8f5ee42afa52d196bf86f8a92011850 Reviewed-on: https://gerrit.libreoffice.org/61186 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/misc/acceleratorexecute.cxx | 2 +- svtools/source/misc/imagemgr.cxx | 4 ++-- svtools/source/misc/langhelp.cxx | 2 +- svtools/source/misc/templatefoldercache.cxx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svtools/source/misc') diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx index 6d4737334dce..60e831a5b2cb 100644 --- a/svtools/source/misc/acceleratorexecute.cxx +++ b/svtools/source/misc/acceleratorexecute.cxx @@ -46,7 +46,7 @@ class AsyncAccelExec : public cppu::WeakImplHelper private: css::uno::Reference m_xFrame; css::uno::Reference< css::frame::XDispatch > m_xDispatch; - css::util::URL m_aURL; + css::util::URL const m_aURL; vcl::EventPoster m_aAsyncCallback; public: diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx index f7a9a9e8a703..9456af23c7b4 100644 --- a/svtools/source/misc/imagemgr.cxx +++ b/svtools/source/misc/imagemgr.cxx @@ -51,9 +51,9 @@ struct SvtExtensionResIdMapping_Impl { const char* _pExt; - bool _bExt; + bool const _bExt; const char* pStrId; - SvImageId _nImgId; + SvImageId const _nImgId; }; static SvtExtensionResIdMapping_Impl const ExtensionMap_Impl[] = diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx index c51e9e7f9e4f..51d8926915fa 100644 --- a/svtools/source/misc/langhelp.cxx +++ b/svtools/source/misc/langhelp.cxx @@ -68,7 +68,7 @@ static std::unique_ptr xLangpackInstaller; class InstallLangpack : public Idle { - std::vector m_aPackages; + std::vector const m_aPackages; public: explicit InstallLangpack(const std::vector& rPackages) : Idle("install langpack") diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx index 28b547b329c2..355fbd4695c3 100644 --- a/svtools/source/misc/templatefoldercache.cxx +++ b/svtools/source/misc/templatefoldercache.cxx @@ -106,7 +106,7 @@ namespace svt public: private: - INetURLObject m_aURL; + INetURLObject const m_aURL; util::DateTime m_aLastModified; // date of last modification as reported by UCP TemplateFolderContent m_aSubContents; // sorted (by name) list of the children @@ -383,7 +383,7 @@ namespace svt bool m_bNeedsUpdate : 1; bool m_bKnowState : 1; bool m_bValidCurrentState : 1; - bool m_bAutoStoreState : 1; + bool const m_bAutoStoreState : 1; public: explicit TemplateFolderCacheImpl( bool _bAutoStoreState ); -- cgit