summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-01 14:30:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 08:26:03 +0200
commit07c4aa4298f062cee1894b80ef82e76d5ffcf4c7 (patch)
tree23752b23ce6d21c209c9d178420dee86c48938de /svtools/source/misc
parent48bf5a74186140760a734091a85e85d198e6fdfa (diff)
loplugin:constfields in svtools
Change-Id: I91553f89d8f5ee42afa52d196bf86f8a92011850 Reviewed-on: https://gerrit.libreoffice.org/61186 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx2
-rw-r--r--svtools/source/misc/imagemgr.cxx4
-rw-r--r--svtools/source/misc/langhelp.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx4
4 files changed, 6 insertions, 6 deletions
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<css::lang::XEventListener>
private:
css::uno::Reference<css::lang::XComponent> 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<Idle> xLangpackInstaller;
class InstallLangpack : public Idle
{
- std::vector<OUString> m_aPackages;
+ std::vector<OUString> const m_aPackages;
public:
explicit InstallLangpack(const std::vector<OUString>& 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 );