summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.hxx2
-rw-r--r--basctl/source/basicide/baside2b.cxx4
-rw-r--r--basctl/source/basicide/linenumberwindow.cxx4
-rw-r--r--basctl/source/basicide/linenumberwindow.hxx2
4 files changed, 2 insertions, 10 deletions
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;}
};