From 3e82897353e576dc6e3fbf55371fda5a0c3415df Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Jun 2014 14:06:28 +0200 Subject: improve the inlinesimplememberfunctions clang plugin Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e --- basctl/source/basicide/baside2.hxx | 2 +- basctl/source/basicide/baside2b.cxx | 4 ---- basctl/source/basicide/linenumberwindow.cxx | 4 ---- basctl/source/basicide/linenumberwindow.hxx | 2 +- 4 files changed, 2 insertions(+), 10 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 35ca5d52ac6b..552064e1e4c1 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -525,7 +525,7 @@ public: void InsertEntry( const OUString& aStr ); void ClearListBox(); void SetTextSelection( const TextSelection& aSel ); - const TextSelection& GetTextSelection() const; + const TextSelection& GetTextSelection() const { return aTextSelection;} void ResizeAndPositionListBox(); void SelectFirstEntry(); //selects first entry in ListBox void ClearAndHide(); diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 645da409edec..78f65e67968d 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -2819,10 +2819,6 @@ void CodeCompleteWindow::SetTextSelection( const TextSelection& aSel ) aTextSelection = aSel; } -const TextSelection& CodeCompleteWindow::GetTextSelection() const -{ - return aTextSelection; -} void CodeCompleteWindow::ResizeAndPositionListBox() { diff --git a/basctl/source/basicide/linenumberwindow.cxx b/basctl/source/basicide/linenumberwindow.cxx index 5764f7ad902c..d7064e9d2485 100644 --- a/basctl/source/basicide/linenumberwindow.cxx +++ b/basctl/source/basicide/linenumberwindow.cxx @@ -99,10 +99,6 @@ void LineNumberWindow::DoScroll(long nHorzScroll, long nVertScroll) Window::Scroll(nHorzScroll, nVertScroll); } -long& LineNumberWindow::GetCurYOffset() -{ - return m_nCurYOffset; -} bool LineNumberWindow::SyncYOffset() { diff --git a/basctl/source/basicide/linenumberwindow.hxx b/basctl/source/basicide/linenumberwindow.hxx index aae3409e5ed1..e01c078a378f 100644 --- a/basctl/source/basicide/linenumberwindow.hxx +++ b/basctl/source/basicide/linenumberwindow.hxx @@ -36,7 +36,7 @@ public: void DoScroll( long nHorzScroll, long nVertScroll ); bool SyncYOffset(); - long& GetCurYOffset(); + long& GetCurYOffset() { return m_nCurYOffset;} int GetWidth() { return m_nWidth;} }; -- cgit