From 184a00b96235f6432294ded63ce4a4a318effdb5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 9 Jun 2014 10:09:42 +0200 Subject: loplugin: inlinesimplememberfunctions Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b --- basctl/source/basicide/baside2.hxx | 2 +- basctl/source/basicide/baside2b.cxx | 4 ---- basctl/source/basicide/linenumberwindow.cxx | 4 ---- basctl/source/basicide/linenumberwindow.hxx | 2 +- basctl/source/dlged/dlged.cxx | 4 ---- basctl/source/inc/dlged.hxx | 2 +- 6 files changed, 3 insertions(+), 15 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index aae2ae6f53ba..35ca5d52ac6b 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -554,7 +554,7 @@ public: std::vector< OUString > GetXIdlClassMethods() const; std::vector< OUString > GetXIdlClassFields() const; - bool CanCodeComplete() const; + bool CanCodeComplete() const { return bCanComplete;} }; } // namespace basctl diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 93e0f048339b..338f35078c3f 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2968,10 +2968,6 @@ std::vector< OUString > UnoTypeCodeCompletetor::GetXIdlClassFields() const return aRetVect;//this is empty when cannot code complete } -bool UnoTypeCodeCompletetor::CanCodeComplete() const -{ - return bCanComplete; -} bool UnoTypeCodeCompletetor::CheckField( const OUString& sFieldName ) {// modifies xClass!!! diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx index 22eb1ff1369e..5764f7ad902c 100644 --- a/basctl/source/basicide/linenumberwindow.cxx +++ b/basctl/source/basicide/linenumberwindow.cxx @@ -119,10 +119,6 @@ bool LineNumberWindow::SyncYOffset() return true; } -int LineNumberWindow::GetWidth() -{ - return m_nWidth; -} } // namespace basctl diff --git a/basctl/source/basicide/linenumberwindow.hxx b/basctl/source/basicide/linenumberwindow.hxx index a99cc069211e..aae3409e5ed1 100644 --- a/basctl/source/basicide/linenumberwindow.hxx +++ b/basctl/source/basicide/linenumberwindow.hxx @@ -38,7 +38,7 @@ public: bool SyncYOffset(); long& GetCurYOffset(); - int GetWidth(); + int GetWidth() { return m_nWidth;} }; } // namespace basctl diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index ebf8ba0b5cc1..b4f0d27bb8f1 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -624,10 +624,6 @@ void DlgEditor::SetInsertObj( sal_uInt16 eObj ) } -sal_uInt16 DlgEditor::GetInsertObj() const -{ - return eActObj; -} void DlgEditor::CreateDefaultObject() diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index 0103030fc96f..028e1c9ae04f 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -190,7 +190,7 @@ public: void SetMode (Mode eMode); void SetInsertObj( sal_uInt16 eObj ); - sal_uInt16 GetInsertObj() const; + sal_uInt16 GetInsertObj() const { return eActObj;} void CreateDefaultObject(); Mode GetMode() const { return eMode; } bool IsCreateOK() const { return bCreateOK; } -- cgit