diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-04 16:08:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-05 08:27:23 +0200 |
commit | 6c9917c7a74e1c14f1c60ad40b96470b6ef08936 (patch) | |
tree | 07beaf7a8207e34acc642ae2d91e3facd7080ccc /dbaccess/source/ui/querydesign | |
parent | 51fa45c8b8ee2ff37beef9639dc1ce5ed1e38e8f (diff) |
loplugin:constmethod in dbaccess
Change-Id: I3bb4784e1a2d828eca30f255a9c9bb4248309b81
Reviewed-on: https://gerrit.libreoffice.org/78603
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/querydesign')
8 files changed, 17 insertions, 17 deletions
diff --git a/dbaccess/source/ui/querydesign/ConnectionLine.cxx b/dbaccess/source/ui/querydesign/ConnectionLine.cxx index 27840ac35d7c..d02abd5dbfd1 100644 --- a/dbaccess/source/ui/querydesign/ConnectionLine.cxx +++ b/dbaccess/source/ui/querydesign/ConnectionLine.cxx @@ -145,7 +145,7 @@ OConnectionLine& OConnectionLine::operator=( const OConnectionLine& rLine ) return *this; } -tools::Rectangle OConnectionLine::GetBoundingRect() +tools::Rectangle OConnectionLine::GetBoundingRect() const { // determine surrounding rectangle tools::Rectangle aBoundingRect( Point(0,0), Point(0,0) ); diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx index 12521c4f6243..5e15f4b9cde0 100644 --- a/dbaccess/source/ui/querydesign/JoinTableView.cxx +++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx @@ -236,7 +236,7 @@ void OJoinTableView::Resize() } } -sal_uLong OJoinTableView::GetTabWinCount() +sal_uLong OJoinTableView::GetTabWinCount() const { return m_aTableMap.size(); } diff --git a/dbaccess/source/ui/querydesign/QTableWindowData.hxx b/dbaccess/source/ui/querydesign/QTableWindowData.hxx index ac74a39a7508..8acab3bd4097 100644 --- a/dbaccess/source/ui/querydesign/QTableWindowData.hxx +++ b/dbaccess/source/ui/querydesign/QTableWindowData.hxx @@ -33,7 +33,7 @@ namespace dbaui explicit OQueryTableWindowData(const OUString& _rComposedName, const OUString& rTableName, const OUString& rTableAlias); virtual ~OQueryTableWindowData() override; - OUString const & GetAliasName() { return GetWinName(); } + OUString const & GetAliasName() const { return GetWinName(); } void SetAliasName(const OUString& rNewAlias) { SetWinName(rNewAlias); } }; } diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index ab8ed4c847d8..b0a7129f8eaf 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2569,7 +2569,7 @@ void OQueryDesignView::copy() m_pSelectionBox->copy(); } -bool OQueryDesignView::isCutAllowed() +bool OQueryDesignView::isCutAllowed() const { bool bAllowed = false; if ( SELECTION == m_eChildFocus ) @@ -2577,7 +2577,7 @@ bool OQueryDesignView::isCutAllowed() return bAllowed; } -bool OQueryDesignView::isPasteAllowed() +bool OQueryDesignView::isPasteAllowed() const { bool bAllowed = false; if ( SELECTION == m_eChildFocus ) @@ -2585,7 +2585,7 @@ bool OQueryDesignView::isPasteAllowed() return bAllowed; } -bool OQueryDesignView::isCopyAllowed() +bool OQueryDesignView::isCopyAllowed() const { bool bAllowed = false; if ( SELECTION == m_eChildFocus ) diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx index 3ff1296c8579..58542fba5c6e 100644 --- a/dbaccess/source/ui/querydesign/QueryTextView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx @@ -68,7 +68,7 @@ void OQueryTextView::Resize() m_pEdit->SetSizePixel( GetOutputSizePixel() ); } -OUString OQueryTextView::getStatement() +OUString OQueryTextView::getStatement() const { return m_pEdit->GetText(); } @@ -94,7 +94,7 @@ void OQueryTextView::copy() m_pEdit->Copy(); } -bool OQueryTextView::isCutAllowed() +bool OQueryTextView::isCutAllowed() const { return !m_pEdit->GetSelected().isEmpty(); } diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx index c9c59eae908c..ba3cee82640d 100644 --- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx +++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx @@ -101,21 +101,21 @@ void OQueryViewSwitch::copy() m_pDesignView->copy(); } -bool OQueryViewSwitch::isCutAllowed() +bool OQueryViewSwitch::isCutAllowed() const { if(m_pTextView->IsVisible()) return m_pTextView->isCutAllowed(); return m_pDesignView->isCutAllowed(); } -bool OQueryViewSwitch::isCopyAllowed() +bool OQueryViewSwitch::isCopyAllowed() const { if(m_pTextView->IsVisible()) return true; return m_pDesignView->isCopyAllowed(); } -bool OQueryViewSwitch::isPasteAllowed() +bool OQueryViewSwitch::isPasteAllowed() const { if(m_pTextView->IsVisible()) return true; diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 513687abfa98..edb0799da3bc 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -2336,7 +2336,7 @@ sal_uInt32 OSelectionBrowseBox::GetTotalCellWidth(long nRowId, sal_uInt16 nColId return GetDataWindow().LogicToPixel(Size(GetDataWindow().GetTextWidth(strText),0)).Width(); } -bool OSelectionBrowseBox::isCutAllowed() +bool OSelectionBrowseBox::isCutAllowed() const { bool bCutAllowed = false; long nRow = GetRealRow(GetCurRow()); @@ -2393,7 +2393,7 @@ void OSelectionBrowseBox::paste() invalidateUndoRedo(); } -bool OSelectionBrowseBox::isPasteAllowed() +bool OSelectionBrowseBox::isPasteAllowed() const { bool bPasteAllowed = true; long nRow = GetRealRow(GetCurRow()); @@ -2409,7 +2409,7 @@ bool OSelectionBrowseBox::isPasteAllowed() return bPasteAllowed; } -bool OSelectionBrowseBox::isCopyAllowed() +bool OSelectionBrowseBox::isCopyAllowed() const { return isCutAllowed(); } diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx index 9398a8294ad0..69769aaf65d2 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx @@ -122,9 +122,9 @@ namespace dbaui Size CalcOptimalSize( const Size& _rAvailable ); // can the current content be cut - bool isPasteAllowed(); - bool isCutAllowed(); - bool isCopyAllowed(); + bool isPasteAllowed() const; + bool isCutAllowed() const; + bool isCopyAllowed() const; void cut(); void paste(); void copy(); |