summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-15 08:54:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-15 09:42:02 +0100
commit8c4c1abc9ffa7d9f893d4d16de61594ee090f10b (patch)
tree137c17f7ae50b12eb5e00c7a06aaef3e825dea5c /svx
parent4ddd6f329163cbac5ff31e51a5b028d8eeedadd2 (diff)
loplugin:staticmethods in svx
Change-Id: I94df3aa40fa79877ccebf1ed8709bd7cc47748d9 Reviewed-on: https://gerrit.libreoffice.org/63398 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/sxcikitm.hxx2
-rw-r--r--svx/inc/sxmkitm.hxx2
-rw-r--r--svx/source/dialog/ClassificationDialog.cxx2
-rw-r--r--svx/source/dialog/hexcolorcontrol.cxx2
-rw-r--r--svx/source/svdraw/svdattr.cxx28
5 files changed, 18 insertions, 18 deletions
diff --git a/svx/inc/sxcikitm.hxx b/svx/inc/sxcikitm.hxx
index c651227806d4..03740ab7758c 100644
--- a/svx/inc/sxcikitm.hxx
+++ b/svx/inc/sxcikitm.hxx
@@ -36,7 +36,7 @@ public:
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
- OUString GetValueTextByPos(sal_uInt16 nPos) const;
+ static OUString GetValueTextByPos(sal_uInt16 nPos);
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const override;
};
diff --git a/svx/inc/sxmkitm.hxx b/svx/inc/sxmkitm.hxx
index 2d9eb52041d4..2eed2e61bef2 100644
--- a/svx/inc/sxmkitm.hxx
+++ b/svx/inc/sxmkitm.hxx
@@ -36,7 +36,7 @@ public:
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
- OUString GetValueTextByPos(sal_uInt16 nPos) const;
+ static OUString GetValueTextByPos(sal_uInt16 nPos);
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const override;
};
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx
index 124fbe61da3f..74dbb68900a4 100644
--- a/svx/source/dialog/ClassificationDialog.cxx
+++ b/svx/source/dialog/ClassificationDialog.cxx
@@ -697,7 +697,7 @@ IMPL_LINK_NOARG(ClassificationDialog, EditWindowModifiedHdl, LinkParamNone*, voi
toggleWidgetsDependingOnCategory();
}
-IMPL_LINK(ClassificationDialog, ExpandedHdl, VclExpander&, rExpander, void)
+IMPL_STATIC_LINK(ClassificationDialog, ExpandedHdl, VclExpander&, rExpander, void)
{
std::shared_ptr<comphelper::ConfigurationChanges> aConfigurationChanges(comphelper::ConfigurationChanges::create());
officecfg::Office::Common::Classification::IntellectualPropertySectionExpanded::set(rExpander.get_expanded(), aConfigurationChanges);
diff --git a/svx/source/dialog/hexcolorcontrol.cxx b/svx/source/dialog/hexcolorcontrol.cxx
index 6f662565b0f7..e9ddfb553a43 100644
--- a/svx/source/dialog/hexcolorcontrol.cxx
+++ b/svx/source/dialog/hexcolorcontrol.cxx
@@ -63,7 +63,7 @@ Color HexColorControl::GetColor()
return Color(nColor);
}
-IMPL_LINK(HexColorControl, ImplProcessInputHdl, OUString&, rTest, bool)
+IMPL_STATIC_LINK(HexColorControl, ImplProcessInputHdl, OUString&, rTest, bool)
{
const sal_Unicode* pTest = rTest.getStr();
sal_Int32 nLen = rTest.getLength();
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index b62dda4b7a05..74ecec61ae71 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -884,7 +884,7 @@ SfxPoolItem* SdrCaptionTypeItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrCaptionTypeItem::GetValueCount() const { return 4; }
-OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALCAPTIONTYPES[] =
{
@@ -915,7 +915,7 @@ SfxPoolItem* SdrCaptionEscDirItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrCaptionEscDirItem::GetValueCount() const { return 3; }
-OUString SdrCaptionEscDirItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrCaptionEscDirItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALCAPTIONTYPES[] =
{
@@ -952,7 +952,7 @@ SfxPoolItem* SdrTextFitToSizeTypeItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; }
-OUString SdrTextFitToSizeTypeItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrTextFitToSizeTypeItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALFITTISIZETYPES[] =
{
@@ -1017,7 +1017,7 @@ SfxPoolItem* SdrTextVertAdjustItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; }
-OUString SdrTextVertAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrTextVertAdjustItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALTEXTVADJTYPES[] =
{
@@ -1079,7 +1079,7 @@ SfxPoolItem* SdrTextHorzAdjustItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; }
-OUString SdrTextHorzAdjustItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrTextHorzAdjustItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALTEXTHADJTYPES[] =
{
@@ -1134,7 +1134,7 @@ SfxPoolItem* SdrTextAniKindItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; }
-OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALTEXTANITYPES[] =
{
@@ -1188,7 +1188,7 @@ SfxPoolItem* SdrTextAniDirectionItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; }
-OUString SdrTextAniDirectionItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrTextAniDirectionItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALTEXTANITYPES[] =
{
@@ -1357,7 +1357,7 @@ SfxPoolItem* SdrEdgeKindItem::Clone(SfxItemPool* /*pPool*/) const { r
sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; }
-OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALEDGES[] =
{
@@ -1528,7 +1528,7 @@ SfxPoolItem* SdrMeasureKindItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; }
-OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALMEASURETYPES[] =
{
@@ -1579,7 +1579,7 @@ SfxPoolItem* SdrMeasureTextHPosItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; }
-OUString SdrMeasureTextHPosItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrMeasureTextHPosItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALMEASURETEXTTYPES[] =
{
@@ -1632,7 +1632,7 @@ SfxPoolItem* SdrMeasureTextVPosItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; }
-OUString SdrMeasureTextVPosItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrMeasureTextVPosItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALMEASURETEXTTYPES[] =
{
@@ -1685,7 +1685,7 @@ SfxPoolItem* SdrMeasureUnitItem::Clone(SfxItemPool* /*pPool*/) const
sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; }
-OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos)
{
OUString aRetval;
@@ -1731,7 +1731,7 @@ SfxPoolItem* SdrCircKindItem::Clone(SfxItemPool* /*pPool*/) const { ret
sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; }
-OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos)
{
static const char* ITEMVALCIRCTYPES[] =
{
@@ -1881,7 +1881,7 @@ sal_uInt16 SdrGrafModeItem::GetValueCount() const
return 4;
}
-OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos)
{
OUString aStr;