summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-06 11:37:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 07:38:24 +0100
commit38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f (patch)
treeac3de03a8c2944371ce43443750f6eeb8d318046 /sfx2
parent60714a814847f6d10f00aa6809a3896a48741e0b (diff)
loplugin:singlevalfields extend to all static vars
Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx2
-rw-r--r--sfx2/source/view/classificationhelper.cxx22
2 files changed, 12 insertions, 12 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 034a8987de36..92a558285efc 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2582,7 +2582,7 @@ void SfxHelpWindow_Impl::Resize()
void SfxHelpWindow_Impl::Split()
{
- static long nMinSplitSize = 5;
+ static const long nMinSplitSize = 5;
static long nMaxSplitSize = 99 - nMinSplitSize;
SplitWindow::Split();
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 04b414d674c5..0caabb682b67 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -47,43 +47,43 @@ namespace
const OUString& PROP_BACNAME()
{
- static OUString sProp("BusinessAuthorizationCategory:Name");
+ static const OUString sProp("BusinessAuthorizationCategory:Name");
return sProp;
}
const OUString& PROP_STARTVALIDITY()
{
- static OUString sProp("Authorization:StartValidity");
+ static const OUString sProp("Authorization:StartValidity");
return sProp;
}
const OUString& PROP_NONE()
{
- static OUString sProp("None");
+ static const OUString sProp("None");
return sProp;
}
const OUString& PROP_IMPACTSCALE()
{
- static OUString sProp("Impact:Scale");
+ static const OUString sProp("Impact:Scale");
return sProp;
}
const OUString& PROP_IMPACTLEVEL()
{
- static OUString sProp("Impact:Level:Confidentiality");
+ static const OUString sProp("Impact:Level:Confidentiality");
return sProp;
}
const OUString& PROP_PREFIX_EXPORTCONTROL()
{
- static OUString sProp("urn:bails:ExportControl:");
+ static const OUString sProp("urn:bails:ExportControl:");
return sProp;
}
const OUString& PROP_PREFIX_NATIONALSECURITY()
{
- static OUString sProp("urn:bails:NationalSecurity:");
+ static const OUString sProp("urn:bails:NationalSecurity:");
return sProp;
}
@@ -919,25 +919,25 @@ const OUString& SfxClassificationHelper::policyTypeToString(SfxClassificationPol
const OUString& SfxClassificationHelper::PROP_DOCHEADER()
{
- static OUString sProp("Marking:document-header");
+ static const OUString sProp("Marking:document-header");
return sProp;
}
const OUString& SfxClassificationHelper::PROP_DOCFOOTER()
{
- static OUString sProp("Marking:document-footer");
+ static const OUString sProp("Marking:document-footer");
return sProp;
}
const OUString& SfxClassificationHelper::PROP_DOCWATERMARK()
{
- static OUString sProp("Marking:document-watermark");
+ static const OUString sProp("Marking:document-watermark");
return sProp;
}
const OUString& SfxClassificationHelper::PROP_PREFIX_INTELLECTUALPROPERTY()
{
- static OUString sProp("urn:bails:IntellectualProperty:");
+ static const OUString sProp("urn:bails:IntellectualProperty:");
return sProp;
}