summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-03-15 18:31:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-16 08:21:14 +0100
commit6d40302d89e1a72841c8a64733c7a26080a65cb8 (patch)
treee85fdf8b60f587e2fd016d8299dc1ced1ee650e4 /unotools
parent1133c399ff7a5d33c5351f776cc24d3b48592eba (diff)
Revert "loplugin:constfields in unotools..uui"
This reverts commit d8ac55e3e53564aca4b0bade5a5b5cb01b4519b1. Change-Id: Ib7cf67d5d0b7780dfde9453cdddb8f11ca5d3a6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90542 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configvaluecontainer.cxx2
-rw-r--r--unotools/source/config/defaultoptions.cxx4
-rw-r--r--unotools/source/config/fontcfg.cxx8
-rw-r--r--unotools/source/config/lingucfg.cxx2
-rw-r--r--unotools/source/config/pathoptions.cxx4
-rw-r--r--unotools/source/config/viewoptions.cxx2
-rw-r--r--unotools/source/misc/wincodepage.cxx12
7 files changed, 17 insertions, 17 deletions
diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx
index 9d4f711938d3..6fc60d753113 100644
--- a/unotools/source/config/configvaluecontainer.cxx
+++ b/unotools/source/config/configvaluecontainer.cxx
@@ -47,7 +47,7 @@ namespace utl
struct NodeValueAccessor
{
private:
- OUString const sRelativePath; // the relative path of the node
+ OUString sRelativePath; // the relative path of the node
LocationType eLocationType; // the type of location where the value is stored
void* pLocation; // the pointer to the location
Type aDataType; // the type object pointed to by pLocation
diff --git a/unotools/source/config/defaultoptions.cxx b/unotools/source/config/defaultoptions.cxx
index b3c9dca8e38b..80a597abcdbf 100644
--- a/unotools/source/config/defaultoptions.cxx
+++ b/unotools/source/config/defaultoptions.cxx
@@ -114,8 +114,8 @@ namespace {
struct PathToDefaultMapping_Impl
{
- SvtPathOptions::Paths const _ePath;
- PathStrPtr const _pDefaultPath;
+ SvtPathOptions::Paths _ePath;
+ PathStrPtr _pDefaultPath;
};
}
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 1da36a7e978c..8cc694bbb59c 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -453,7 +453,7 @@ namespace {
struct ImplFontAttrWeightSearchData
{
const char* mpStr;
- FontWeight const meWeight;
+ FontWeight meWeight;
};
}
@@ -483,7 +483,7 @@ namespace {
struct ImplFontAttrWidthSearchData
{
const char* mpStr;
- FontWidth const meWidth;
+ FontWidth meWidth;
};
}
@@ -508,7 +508,7 @@ namespace {
struct ImplFontAttrTypeSearchData
{
const char* mpStr;
- ImplFontAttrs const mnType;
+ ImplFontAttrs mnType;
};
}
@@ -799,7 +799,7 @@ namespace {
struct enum_convert
{
const char* pName;
- int const nEnum;
+ int nEnum;
};
}
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index 21ac370ba7ab..3bd5953889e7 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -214,7 +214,7 @@ struct NamesToHdl
{
const char *pFullPropName; // full qualified name as used in configuration
const char *pPropName; // property name only (atom) of above
- sal_Int32 const nHdl; // numeric handle representing the property
+ sal_Int32 nHdl; // numeric handle representing the property
};
}
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index f54b388d50a3..9d1927042bef 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -81,7 +81,7 @@ class SvtPathOptions_Impl
m_aMapEnumToPropHandle;
VarNameSet m_aSystemPathVarNames;
- OUString const m_aEmptyString;
+ OUString m_aEmptyString;
mutable ::osl::Mutex m_aMutex;
public:
@@ -157,7 +157,7 @@ namespace {
struct PropertyStruct
{
const char* pPropName; // The ascii name of the Office path
- SvtPathOptions::Paths const ePath; // The enum value used by SvtPathOptions
+ SvtPathOptions::Paths ePath; // The enum value used by SvtPathOptions
};
struct VarNameAttribute
diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx
index e72450d67186..4a36ad2c26e0 100644
--- a/unotools/source/config/viewoptions.cxx
+++ b/unotools/source/config/viewoptions.cxx
@@ -111,7 +111,7 @@ class SvtViewOptionsBase_Impl final
bool bCreateIfMissing);
private:
- OUString const m_sListName;
+ OUString m_sListName;
css::uno::Reference< css::container::XNameAccess > m_xRoot;
css::uno::Reference< css::container::XNameAccess > m_xSet;
diff --git a/unotools/source/misc/wincodepage.cxx b/unotools/source/misc/wincodepage.cxx
index 493476a5b80b..5a5df8b3ed2e 100644
--- a/unotools/source/misc/wincodepage.cxx
+++ b/unotools/source/misc/wincodepage.cxx
@@ -20,9 +20,9 @@ rtl_TextEncoding impl_getWinTextEncodingFromLangStrANSI(const char* pLanguage)
struct LangEncodingDef
{
- const char* const mpLangStr;
- decltype(nLangLen) const mnLangStrLen;
- rtl_TextEncoding const meTextEncoding;
+ const char* mpLangStr;
+ decltype(nLangLen) mnLangStrLen;
+ rtl_TextEncoding meTextEncoding;
};
static LangEncodingDef const aLanguageTab[] =
{
@@ -82,9 +82,9 @@ rtl_TextEncoding impl_getWinTextEncodingFromLangStrOEM(const char* pLanguage)
struct LangEncodingDef
{
- const char* const mpLangStr;
- decltype(nLangLen) const mnLangStrLen;
- rtl_TextEncoding const meTextEncoding;
+ const char* mpLangStr;
+ decltype(nLangLen) mnLangStrLen;
+ rtl_TextEncoding meTextEncoding;
};
static LangEncodingDef const aLanguageTab[] =
{