summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /svtools
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx12
-rw-r--r--svtools/source/contnr/simptabl.cxx4
-rw-r--r--svtools/source/contnr/treelistentry.cxx8
-rw-r--r--svtools/source/control/scriptedtext.cxx6
-rw-r--r--svtools/source/dialogs/colrdlg.cxx4
-rw-r--r--svtools/source/inc/unoiface.hxx2
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx8
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx6
-rw-r--r--svtools/source/uno/unoiface.cxx4
9 files changed, 5 insertions, 49 deletions
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index 07fa25c54f6c..289e85d332e1 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -183,8 +183,8 @@ public:
bool IsOverlayBuffer() const { return m_bOverlayBuffer;}
bool IsPaintBuffer() const { return m_bPaintBuffer;}
- Color GetStripeColorA() const;
- Color GetStripeColorB() const;
+ Color GetStripeColorA() const { return m_bStripeColorA;}
+ Color GetStripeColorB() const { return m_bStripeColorB;}
sal_uInt16 GetStripeLength() const { return m_nStripeLength;}
// #i73602#
@@ -701,18 +701,10 @@ void SvtOptionsDrawinglayer_Impl::Notify( const com::sun::star::uno::Sequence<OU
// public method
-Color SvtOptionsDrawinglayer_Impl::GetStripeColorA() const
-{
- return m_bStripeColorA;
-}
// public method
-Color SvtOptionsDrawinglayer_Impl::GetStripeColorB() const
-{
- return m_bStripeColorB;
-}
// public method
diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx
index 16e42cfd9d74..720028e76ddc 100644
--- a/svtools/source/contnr/simptabl.cxx
+++ b/svtools/source/contnr/simptabl.cxx
@@ -368,10 +368,6 @@ void SvSimpleTable::HBarEndDrag()
Update();
}
-CommandEvent SvSimpleTable::GetCommandEvent() const
-{
- return aCEvt;
-}
void SvSimpleTable::Command( const CommandEvent& rCEvt )
{
diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx
index af348256d0b1..559a60f2b25d 100644
--- a/svtools/source/contnr/treelistentry.cxx
+++ b/svtools/source/contnr/treelistentry.cxx
@@ -99,15 +99,7 @@ sal_uLong SvTreeListEntry::GetChildListPos() const
return ( nListPos & 0x7fffffff );
}
-SvTreeListEntries& SvTreeListEntry::GetChildEntries()
-{
- return maChildren;
-}
-const SvTreeListEntries& SvTreeListEntry::GetChildEntries() const
-{
- return maChildren;
-}
void SvTreeListEntry::Clone(SvTreeListEntry* pSource)
{
diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx
index 798885b9f7c0..97a17c45f9dc 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -86,7 +86,7 @@ public:
const uno::Reference< i18n::XBreakIterator >& _xBreakIter );
/** Returns a size struct containing the width and height of the text in the current output device. */
- const Size& GetTextSize() const;
+ const Size& GetTextSize() const { return maTextSize;}
/** Draws the text in the current output device. */
void DrawText( const Point& _rPos );
@@ -269,10 +269,6 @@ void SvtScriptedTextHelper_Impl::SetText( const OUString& _rText, const uno::Ref
CalculateBreaks( _xBreakIter );
}
-const Size& SvtScriptedTextHelper_Impl::GetTextSize() const
-{
- return maTextSize;
-}
void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
{
diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx
index a25ccac6972e..76c5300c5595 100644
--- a/svtools/source/dialogs/colrdlg.cxx
+++ b/svtools/source/dialogs/colrdlg.cxx
@@ -56,10 +56,6 @@ void SvColorDialog::SetColor( const Color& rColor )
-const Color& SvColorDialog::GetColor() const
-{
- return maColor;
-}
diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx
index b920a7485d82..af95a045a405 100644
--- a/svtools/source/inc/unoiface.hxx
+++ b/svtools/source/inc/unoiface.hxx
@@ -187,7 +187,7 @@ public:
::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
protected:
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const;
+ ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const { return ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > ((::com::sun::star::util::XNumberFormatsSupplier*)m_pCurrentSupplier);}
void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier);
sal_Int32 getFormatKey(void) const;
void setFormatKey(sal_Int32 nKey);
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 81c70292140c..fd02c9dc561b 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -674,15 +674,7 @@ void ToolboxController::updateStatus( const OUString& aCommandURL )
}
}
-Reference< XURLTransformer > ToolboxController::getURLTransformer() const
-{
- return m_xUrlTransformer;
-}
-Reference< ::com::sun::star::awt::XWindow > ToolboxController::getParent() const
-{
- return m_xParentWindow;
-}
void ToolboxController::dispatchCommand( const OUString& sCommandURL, const Sequence< PropertyValue >& rArgs, const OUString &sTarget )
{
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index ccce5deb75e6..90f0c7d4aeb3 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -112,7 +112,7 @@ public:
virtual ~UnoTreeListItem();
void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* ) SAL_OVERRIDE;
void SetImage( const Image& rImage );
- OUString GetGraphicURL() const;
+ OUString GetGraphicURL() const { return maGraphicURL;}
void SetGraphicURL( const OUString& rGraphicURL );
virtual void Paint(
const Point& rPos, SvTreeListBox& rOutDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) SAL_OVERRIDE;
@@ -1643,10 +1643,6 @@ void UnoTreeListItem::SetImage( const Image& rImage )
-OUString UnoTreeListItem::GetGraphicURL() const
-{
- return maGraphicURL;
-}
diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx
index 93b63da6c6d1..bcd9083e99a9 100644
--- a/svtools/source/uno/unoiface.cxx
+++ b/svtools/source/uno/unoiface.cxx
@@ -1287,10 +1287,6 @@ void SVTXFormattedField::SetValue(const ::com::sun::star::uno::Any& rValue)
}
-::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > SVTXFormattedField::getFormatsSupplier(void) const
-{
- return ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > ((::com::sun::star::util::XNumberFormatsSupplier*)m_pCurrentSupplier);
-}
void SVTXFormattedField::setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier)