diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-12 14:06:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-17 10:55:17 +0200 |
commit | 3e82897353e576dc6e3fbf55371fda5a0c3415df (patch) | |
tree | 71c2f03128885000efae1852dccb504f8355c79e /extensions | |
parent | ec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff) |
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 4 | ||||
-rw-r--r-- | extensions/source/bibliography/datman.hxx | 2 | ||||
-rw-r--r-- | extensions/source/bibliography/toolbar.cxx | 4 | ||||
-rw-r--r-- | extensions/source/bibliography/toolbar.hxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/browserpage.cxx | 8 | ||||
-rw-r--r-- | extensions/source/propctrlr/browserpage.hxx | 4 | ||||
-rw-r--r-- | extensions/source/propctrlr/commoncontrol.cxx | 4 | ||||
-rw-r--r-- | extensions/source/propctrlr/commoncontrol.hxx | 2 |
8 files changed, 5 insertions, 25 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index 7b2524768437..cc7bb58a3abc 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -824,10 +824,6 @@ Sequence< OUString > BibDataManager::getDataSources() return aTableNameSeq; } -OUString BibDataManager::getActiveDataTable() -{ - return aActiveDataTable; -} void BibDataManager::setFilter(const OUString& rQuery) { diff --git a/extensions/source/bibliography/datman.hxx b/extensions/source/bibliography/datman.hxx index 23580fe8901b..1bdd48b4a89f 100644 --- a/extensions/source/bibliography/datman.hxx +++ b/extensions/source/bibliography/datman.hxx @@ -148,7 +148,7 @@ public: OUString getActiveDataSource() {return aDataSourceURL;} void setActiveDataSource(const OUString& rURL); - OUString getActiveDataTable(); + OUString getActiveDataTable() { return aActiveDataTable;} void setActiveDataTable(const OUString& rTable); void setFilter(const OUString& rQuery); diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx index 3db37dfeb6d1..d08505bc5bf2 100644 --- a/extensions/source/bibliography/toolbar.cxx +++ b/extensions/source/bibliography/toolbar.cxx @@ -74,10 +74,6 @@ void BibToolBarListener::statusChanged(const ::com::sun::star::frame::FeatureSta } }; -OUString BibToolBarListener::GetCommand() const -{ - return aCommand; -} BibTBListBoxListener::BibTBListBoxListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId): BibToolBarListener(pTB,aStr,nId) diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx index 08a0517860e8..b14c231c7d86 100644 --- a/extensions/source/bibliography/toolbar.hxx +++ b/extensions/source/bibliography/toolbar.hxx @@ -51,7 +51,7 @@ public: BibToolBarListener(BibToolBar *pTB, const OUString& aStr, sal_uInt16 nId); virtual ~BibToolBarListener(); - OUString GetCommand() const; + OUString GetCommand() const { return aCommand;} // ::com::sun::star::lang::XEventListener // we do not hold References to dispatches, so there is nothing to do on disposal diff --git a/extensions/source/propctrlr/browserpage.cxx b/extensions/source/propctrlr/browserpage.cxx index c7b93688046d..00bce2cd7f00 100644 --- a/extensions/source/propctrlr/browserpage.cxx +++ b/extensions/source/propctrlr/browserpage.cxx @@ -57,16 +57,8 @@ namespace pcr } - OBrowserListBox& OBrowserPage::getListBox() - { - return m_aListBox; - } - const OBrowserListBox& OBrowserPage::getListBox() const - { - return m_aListBox; - } void OBrowserPage::StateChanged(StateChangedType nType) diff --git a/extensions/source/propctrlr/browserpage.hxx b/extensions/source/propctrlr/browserpage.hxx index b1420cda2467..bb368df0ed45 100644 --- a/extensions/source/propctrlr/browserpage.hxx +++ b/extensions/source/propctrlr/browserpage.hxx @@ -47,8 +47,8 @@ namespace pcr sal_Int32 getMinimumWidth(); sal_Int32 getMinimumHeight(); - OBrowserListBox& getListBox(); - const OBrowserListBox& getListBox() const; + OBrowserListBox& getListBox() { return m_aListBox; } + const OBrowserListBox& getListBox() const { return m_aListBox; } }; diff --git a/extensions/source/propctrlr/commoncontrol.cxx b/extensions/source/propctrlr/commoncontrol.cxx index 23da15b73726..2b4263058802 100644 --- a/extensions/source/propctrlr/commoncontrol.cxx +++ b/extensions/source/propctrlr/commoncontrol.cxx @@ -58,10 +58,6 @@ namespace pcr - Reference< XPropertyControlContext > SAL_CALL ControlHelper::getControlContext() throw (RuntimeException) - { - return m_xContext; - } void SAL_CALL ControlHelper::setControlContext( const Reference< XPropertyControlContext >& _controlcontext ) throw (RuntimeException) diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx index 7eab623cf99e..8de803bdbf98 100644 --- a/extensions/source/propctrlr/commoncontrol.hxx +++ b/extensions/source/propctrlr/commoncontrol.hxx @@ -132,7 +132,7 @@ namespace pcr public: // XPropertyControl ::sal_Int16 SAL_CALL getControlType() throw (::com::sun::star::uno::RuntimeException) { return m_nControlType; } - ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext > SAL_CALL getControlContext() throw (::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext > SAL_CALL getControlContext() throw (::com::sun::star::uno::RuntimeException) { return m_xContext; } void SAL_CALL setControlContext( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext >& _controlcontext ) throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getControlWindow() throw (::com::sun::star::uno::RuntimeException); bool SAL_CALL isModified( ) throw (::com::sun::star::uno::RuntimeException) { return m_bModified; } |