[Libreoffice-commits] core.git: editeng/source include/editeng
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 15 11:51:24 UTC 2018
editeng/source/items/frmitems.cxx | 2 +-
editeng/source/items/paraitem.cxx | 2 +-
editeng/source/items/textitem.cxx | 12 ++++++------
include/editeng/adjustitem.hxx | 2 +-
include/editeng/charreliefitem.hxx | 2 +-
include/editeng/cmapitem.hxx | 2 +-
include/editeng/crossedoutitem.hxx | 2 +-
include/editeng/escapementitem.hxx | 2 +-
include/editeng/formatbreakitem.hxx | 2 +-
include/editeng/postitem.hxx | 2 +-
include/editeng/wghtitem.hxx | 2 +-
11 files changed, 16 insertions(+), 16 deletions(-)
New commits:
commit 9007820dfba43475bc58ee8b0af9c7fd014999fb
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Nov 15 12:28:48 2018 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Nov 15 12:50:58 2018 +0100
loplugin:staticmethods in editeng
Change-Id: Ib1a45e69736beb034c1e99e8e0fcb10aef9ffb70
Reviewed-on: https://gerrit.libreoffice.org/63405
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 976084b13b3c..3820048f4165 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2729,7 +2729,7 @@ bool SvxFormatBreakItem::GetPresentation
return true;
}
-OUString SvxFormatBreakItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxFormatBreakItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_BREAK[] =
{
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index f216c93b354e..be4652018a42 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -372,7 +372,7 @@ sal_uInt16 SvxAdjustItem::GetValueCount() const
return sal_uInt16(SvxAdjust::End); // SvxAdjust::BlockLine + 1
}
-OUString SvxAdjustItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxAdjustItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_ADJUST[] =
{
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 15c7f39a7bbb..1763dc69be5d 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -469,7 +469,7 @@ bool SvxPostureItem::GetPresentation
}
-OUString SvxPostureItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxPostureItem::GetValueTextByPos( sal_uInt16 nPos )
{
DBG_ASSERT( nPos <= sal_uInt16(ITALIC_NORMAL), "enum overflow!" );
@@ -615,7 +615,7 @@ bool SvxWeightItem::GetPresentation
return true;
}
-OUString SvxWeightItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxWeightItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_WEIGHTS[] =
{
@@ -1393,7 +1393,7 @@ bool SvxCrossedOutItem::GetPresentation
return true;
}
-OUString SvxCrossedOutItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxCrossedOutItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_STRIKEOUT[] =
{
@@ -1864,7 +1864,7 @@ bool SvxCaseMapItem::GetPresentation
return true;
}
-OUString SvxCaseMapItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxCaseMapItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_CASEMAP[] =
{
@@ -1988,7 +1988,7 @@ bool SvxEscapementItem::GetPresentation
return true;
}
-OUString SvxEscapementItem::GetValueTextByPos( sal_uInt16 nPos ) const
+OUString SvxEscapementItem::GetValueTextByPos( sal_uInt16 nPos )
{
static const char* RID_SVXITEMS_ESCAPEMENT[] =
{
@@ -2725,7 +2725,7 @@ static const char* RID_SVXITEMS_RELIEF[] =
RID_SVXITEMS_RELIEF_ENGRAVED
};
-OUString SvxCharReliefItem::GetValueTextByPos(sal_uInt16 nPos) const
+OUString SvxCharReliefItem::GetValueTextByPos(sal_uInt16 nPos)
{
assert(nPos < SAL_N_ELEMENTS(RID_SVXITEMS_RELIEF) && "enum overflow");
return EditResId(RID_SVXITEMS_RELIEF[nPos]);
diff --git a/include/editeng/adjustitem.hxx b/include/editeng/adjustitem.hxx
index beeb6bebdf9c..9d3eee25f460 100644
--- a/include/editeng/adjustitem.hxx
+++ b/include/editeng/adjustitem.hxx
@@ -63,7 +63,7 @@ public:
MapUnit ePresMetric,
OUString &rText, const IntlWrapper& ) const override;
virtual sal_uInt16 GetValueCount() const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetEnumValue() const override;
virtual void SetEnumValue( sal_uInt16 nNewVal ) override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
diff --git a/include/editeng/charreliefitem.hxx b/include/editeng/charreliefitem.hxx
index fd6607070852..80f269feea1f 100644
--- a/include/editeng/charreliefitem.hxx
+++ b/include/editeng/charreliefitem.hxx
@@ -42,7 +42,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetValueCount() const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
diff --git a/include/editeng/cmapitem.hxx b/include/editeng/cmapitem.hxx
index dace57245fe2..411b9a7dab64 100644
--- a/include/editeng/cmapitem.hxx
+++ b/include/editeng/cmapitem.hxx
@@ -47,7 +47,7 @@ public:
OUString &rText, const IntlWrapper& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetValueCount() const override;
// enum cast
diff --git a/include/editeng/crossedoutitem.hxx b/include/editeng/crossedoutitem.hxx
index 834f4840fb15..8d524aef93ab 100644
--- a/include/editeng/crossedoutitem.hxx
+++ b/include/editeng/crossedoutitem.hxx
@@ -48,7 +48,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override;
virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetValueCount() const override;
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;
diff --git a/include/editeng/escapementitem.hxx b/include/editeng/escapementitem.hxx
index 77c8eb1cb2b7..9d28946a8465 100644
--- a/include/editeng/escapementitem.hxx
+++ b/include/editeng/escapementitem.hxx
@@ -91,7 +91,7 @@ public:
sal_uInt8 GetProportionalHeight() const { return nProp; }
virtual sal_uInt16 GetValueCount() const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetEnumValue() const override;
virtual void SetEnumValue( sal_uInt16 nNewVal ) override;
};
diff --git a/include/editeng/formatbreakitem.hxx b/include/editeng/formatbreakitem.hxx
index f26f516d72b9..6eb2e03b5264 100644
--- a/include/editeng/formatbreakitem.hxx
+++ b/include/editeng/formatbreakitem.hxx
@@ -52,7 +52,7 @@ public:
MapUnit eCoreMetric,
MapUnit ePresMetric,
OUString &rText, const IntlWrapper& ) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SvStream& Store( SvStream& , sal_uInt16 nItemVersion ) const override;
diff --git a/include/editeng/postitem.hxx b/include/editeng/postitem.hxx
index 2d19f544dcbc..82dac5275e2d 100644
--- a/include/editeng/postitem.hxx
+++ b/include/editeng/postitem.hxx
@@ -49,7 +49,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override;
virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetValueCount() const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
diff --git a/include/editeng/wghtitem.hxx b/include/editeng/wghtitem.hxx
index 3ed7e54cdc1d..504650420841 100644
--- a/include/editeng/wghtitem.hxx
+++ b/include/editeng/wghtitem.hxx
@@ -49,7 +49,7 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override;
virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const override;
- OUString GetValueTextByPos( sal_uInt16 nPos ) const;
+ static OUString GetValueTextByPos( sal_uInt16 nPos );
virtual sal_uInt16 GetValueCount() const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
More information about the Libreoffice-commits
mailing list