summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 16:10:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 19:35:04 +0200
commitb23b1295af584162f95c1559a3d8f8bbe4824413 (patch)
tree8421b5260395a0590207766f01ada865552267c6 /svx
parent09cd0e363d6c5b0e7b9cebc598030a7e3d397922 (diff)
loplugin:returnconstval in svx
Change-Id: I501c341962e1d7e31f1466527b6e80f2294d79ed Reviewed-on: https://gerrit.libreoffice.org/78017 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/accessibility/AccessibleControlShape.cxx2
-rw-r--r--svx/source/dialog/txenctab.cxx2
-rw-r--r--svx/source/fmcomp/fmgridif.cxx12
-rw-r--r--svx/source/svdraw/svdovirt.cxx2
-rw-r--r--svx/source/unodraw/unoshap4.cxx2
5 files changed, 5 insertions, 15 deletions
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx
index a287b6cf964d..165d0b24dc27 100644
--- a/svx/source/accessibility/AccessibleControlShape.cxx
+++ b/svx/source/accessibility/AccessibleControlShape.cxx
@@ -82,7 +82,7 @@ namespace
return "LabelControl";
}
// return the property which should be used as AccessibleName
- const OUString lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI )
+ OUString lcl_getPreferredAccNameProperty( const Reference< XPropertySetInfo >& _rxPSI )
{
if ( _rxPSI.is() && _rxPSI->hasPropertyByName( lcl_getLabelPropertyName() ) )
return lcl_getLabelPropertyName();
diff --git a/svx/source/dialog/txenctab.cxx b/svx/source/dialog/txenctab.cxx
index 6755b6365eb2..f14180fb29df 100644
--- a/svx/source/dialog/txenctab.cxx
+++ b/svx/source/dialog/txenctab.cxx
@@ -23,7 +23,7 @@
#include <svx/txenctab.hxx>
#include <txenctab.hrc>
-const OUString SvxTextEncodingTable::GetTextString(const rtl_TextEncoding nEnc)
+OUString SvxTextEncodingTable::GetTextString(const rtl_TextEncoding nEnc)
{
const size_t nCount = SAL_N_ELEMENTS(RID_SVXSTR_TEXTENCODING_TABLE);
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index e5c5b4e0ae4d..639edd2f0189 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -1017,16 +1017,6 @@ void FmXGridPeer::columnChanged()
}
-namespace fmgridif
-{
- static const OUString getDataModeIdentifier()
- {
- return "DataMode";
- }
-}
-using namespace fmgridif;
-
-
FmXGridPeer::FmXGridPeer(const Reference< XComponentContext >& _rxContext)
:m_xContext(_rxContext)
,m_aModifyListeners(m_aMutex)
@@ -1034,7 +1024,7 @@ FmXGridPeer::FmXGridPeer(const Reference< XComponentContext >& _rxContext)
,m_aContainerListeners(m_aMutex)
,m_aSelectionListeners(m_aMutex)
,m_aGridControlListeners(m_aMutex)
- ,m_aMode( getDataModeIdentifier() )
+ ,m_aMode("DataMode")
,m_nCursorListening(0)
,m_bInterceptingDispatch(false)
{
diff --git a/svx/source/svdraw/svdovirt.cxx b/svx/source/svdraw/svdovirt.cxx
index c50f17c53e28..18d1a92125aa 100644
--- a/svx/source/svdraw/svdovirt.cxx
+++ b/svx/source/svdraw/svdovirt.cxx
@@ -544,7 +544,7 @@ bool SdrVirtObj::DoMacro(const SdrObjMacroHitRec& rRec)
return rRefObj.DoMacro(rRec); // TODO: positioning offset
}
-const Point SdrVirtObj::GetOffset() const
+Point SdrVirtObj::GetOffset() const
{
// #i73248# default offset of SdrVirtObj is aAnchor
return aAnchor;
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index ccab2930ba32..f7629f338858 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -515,7 +515,7 @@ void SvxOle2Shape::resetModifiedState()
}
}
-const SvGlobalName SvxOle2Shape::GetClassName_Impl(OUString& rHexCLSID)
+SvGlobalName SvxOle2Shape::GetClassName_Impl(OUString& rHexCLSID)
{
DBG_TESTSOLARMUTEX();
SvGlobalName aClassName;