summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-09 10:09:42 +0200
committerNoel Grandin <noel@peralex.com>2014-06-09 10:10:13 +0200
commit184a00b96235f6432294ded63ce4a4a318effdb5 (patch)
treee4ae0e00cb168fa43d280cfb51a50515258b5320 /editeng/source
parent534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff)
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx12
-rw-r--r--editeng/source/accessibility/AccessibleImageBullet.cxx10
-rw-r--r--editeng/source/editeng/editdoc.cxx4
-rw-r--r--editeng/source/editeng/editdoc.hxx2
-rw-r--r--editeng/source/editeng/editobj.cxx12
-rw-r--r--editeng/source/editeng/editobj2.hxx6
-rw-r--r--editeng/source/editeng/editundo.cxx4
-rw-r--r--editeng/source/items/flditem.cxx4
-rw-r--r--editeng/source/items/numitem.cxx20
-rw-r--r--editeng/source/uno/unoedhlp.cxx8
-rw-r--r--editeng/source/uno/unoedprx.cxx4
11 files changed, 4 insertions, 82 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 8ce0e571d2f1..1108825b3306 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -252,20 +252,12 @@ namespace accessibility
}
}
- int AccessibleEditableTextPara::getNotifierClientId() const
- {
- return mnNotifierClientId;
- }
void AccessibleEditableTextPara::SetIndexInParent( sal_Int32 nIndex )
{
mnIndexInParent = nIndex;
}
- sal_Int32 AccessibleEditableTextPara::GetIndexInParent() const
- {
- return mnIndexInParent;
- }
void AccessibleEditableTextPara::SetParagraphIndex( sal_Int32 nIndex )
{
@@ -302,10 +294,6 @@ namespace accessibility
}
}
- sal_Int32 AccessibleEditableTextPara::GetParagraphIndex() const
- {
- return mnParagraphIndex;
- }
void AccessibleEditableTextPara::Dispose()
{
diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx
index 03dc074c7db4..334782ac6d44 100644
--- a/editeng/source/accessibility/AccessibleImageBullet.cxx
+++ b/editeng/source/accessibility/AccessibleImageBullet.cxx
@@ -474,11 +474,6 @@ namespace accessibility
}
}
- int AccessibleImageBullet::getNotifierClientId() const
- {
-
- return mnNotifierClientId;
- }
void AccessibleImageBullet::SetParagraphIndex( sal_Int32 nIndex )
{
@@ -509,11 +504,6 @@ namespace accessibility
catch( const uno::Exception& ) {} // optional behaviour
}
- sal_Int32 AccessibleImageBullet::GetParagraphIndex() const
- {
-
- return mnParagraphIndex;
- }
SvxEditSource& AccessibleImageBullet::GetEditSource() const
{
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 64fe731e1787..54c96aba59cb 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1185,10 +1185,6 @@ const ContentNode* EditPaM::GetNode() const
return pNode;
}
-ContentNode* EditPaM::GetNode()
-{
- return pNode;
-}
void EditPaM::SetNode(ContentNode* p)
{
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index 1d8c5f908949..40d5a9db7536 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -306,7 +306,7 @@ public:
EditPaM(ContentNode* p, sal_Int32 n);
const ContentNode* GetNode() const;
- ContentNode* GetNode();
+ ContentNode* GetNode() { return pNode;}
void SetNode(ContentNode* p);
sal_Int32 GetIndex() const { return nIndex; }
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 41fddb0b363f..9938e9cd964c 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -620,10 +620,6 @@ EditTextObjectImpl::~EditTextObjectImpl()
}
}
-sal_uInt16 EditTextObjectImpl::GetUserType() const
-{
- return nUserType;
-}
void EditTextObjectImpl::SetUserType( sal_uInt16 n )
{
@@ -653,10 +649,6 @@ std::vector<svl::SharedString> EditTextObjectImpl::GetSharedStrings() const
return aSSs;
}
-bool EditTextObjectImpl::IsVertical() const
-{
- return bVertical;
-}
void EditTextObjectImpl::SetVertical( bool b )
{
@@ -667,10 +659,6 @@ void EditTextObjectImpl::SetVertical( bool b )
}
}
-sal_uInt16 EditTextObjectImpl::GetScriptType() const
-{
- return nScriptType;
-}
void EditTextObjectImpl::SetScriptType( sal_uInt16 nType )
{
diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx
index c5ec2e605d18..1e9773c0be02 100644
--- a/editeng/source/editeng/editobj2.hxx
+++ b/editeng/source/editeng/editobj2.hxx
@@ -205,16 +205,16 @@ public:
EditTextObjectImpl( EditTextObject* pFront, const EditTextObjectImpl& r );
~EditTextObjectImpl();
- sal_uInt16 GetUserType() const;
+ sal_uInt16 GetUserType() const { return nUserType;}
void SetUserType( sal_uInt16 n );
void NormalizeString( svl::SharedStringPool& rPool );
std::vector<svl::SharedString> GetSharedStrings() const;
- bool IsVertical() const;
+ bool IsVertical() const { return bVertical;}
void SetVertical( bool b );
- sal_uInt16 GetScriptType() const;
+ sal_uInt16 GetScriptType() const { return nScriptType;}
void SetScriptType( sal_uInt16 nType );
ContentInfo* CreateAndInsertContent();
diff --git a/editeng/source/editeng/editundo.cxx b/editeng/source/editeng/editundo.cxx
index 55d3b5c3e74d..f3e5355b814b 100644
--- a/editeng/source/editeng/editundo.cxx
+++ b/editeng/source/editeng/editundo.cxx
@@ -126,10 +126,6 @@ EditUndo::~EditUndo()
{
}
-EditEngine* EditUndo::GetEditEngine()
-{
- return mpEditEngine;
-}
sal_uInt16 EditUndo::GetId() const
{
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 33fc1e77ce2d..69a1b2ce0ccf 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -721,10 +721,6 @@ void SvxTableField::SetTab(int nTab)
mnTab = nTab;
}
-int SvxTableField::GetTab() const
-{
- return mnTab;
-}
SvxFieldData* SvxTableField::Clone() const
{
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 129197ef9266..56cfeaccf901 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -449,10 +449,6 @@ void SvxNumberFormat::SetBulletFont(const Font* pFont)
pBulletFont = pFont ? new Font(*pFont): 0;
}
-SvxNumberFormat::SvxNumPositionAndSpaceMode SvxNumberFormat::GetPositionAndSpaceMode() const
-{
- return mePositionAndSpaceMode;
-}
void SvxNumberFormat::SetPositionAndSpaceMode( SvxNumPositionAndSpaceMode ePositionAndSpaceMode )
{
mePositionAndSpaceMode = ePositionAndSpaceMode;
@@ -483,34 +479,18 @@ void SvxNumberFormat::SetLabelFollowedBy( const LabelFollowedBy eLabelFollowedBy
{
meLabelFollowedBy = eLabelFollowedBy;
}
-SvxNumberFormat::LabelFollowedBy SvxNumberFormat::GetLabelFollowedBy() const
-{
- return meLabelFollowedBy;
-}
void SvxNumberFormat::SetListtabPos( const long nListtabPos )
{
mnListtabPos = nListtabPos;
}
-long SvxNumberFormat::GetListtabPos() const
-{
- return mnListtabPos;
-}
void SvxNumberFormat::SetFirstLineIndent( const long nFirstLineIndent )
{
mnFirstLineIndent = nFirstLineIndent;
}
-long SvxNumberFormat::GetFirstLineIndent() const
-{
- return mnFirstLineIndent;
-}
void SvxNumberFormat::SetIndentAt( const long nIndentAt )
{
mnIndentAt = nIndentAt;
}
-long SvxNumberFormat::GetIndentAt() const
-{
- return mnIndentAt;
-}
IMPL_STATIC_LINK( SvxNumberFormat, GraphicArrived, void *, EMPTYARG )
{
diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx
index c8d0be88a3f3..eb42e67b546f 100644
--- a/editeng/source/uno/unoedhlp.cxx
+++ b/editeng/source/uno/unoedhlp.cxx
@@ -45,15 +45,7 @@ sal_uLong SvxEditSourceHint::GetValue() const
return TextHint::GetValue();
}
-sal_Int32 SvxEditSourceHint::GetStartValue() const
-{
- return mnStart;
-}
-sal_Int32 SvxEditSourceHint::GetEndValue() const
-{
- return mnEnd;
-}
TYPEINIT1( SvxEditSourceHintEndPara , SvxEditSourceHint );
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx
index 8a3eb5677d18..961898e93700 100644
--- a/editeng/source/uno/unoedprx.cxx
+++ b/editeng/source/uno/unoedprx.cxx
@@ -422,10 +422,6 @@ void SvxEditSourceAdapter::SetEditSource( ::std::auto_ptr< SvxEditSource > pAdap
}
SAL_WNODEPRECATED_DECLARATIONS_POP
-bool SvxEditSourceAdapter::IsValid() const
-{
- return mbEditSourceValid;
-}