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/control | |
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/control')
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/control/tabletree.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 1c45ddc3c97d..8fc08488620d 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -1527,7 +1527,7 @@ void OFieldDescControl::LoseFocus() TabPage::LoseFocus(); } -bool OFieldDescControl::isCopyAllowed() +bool OFieldDescControl::isCopyAllowed() const { bool bAllowed = (m_pActFocusWindow != nullptr) && (m_pActFocusWindow == pDefault || m_pActFocusWindow == pFormatSample || @@ -1539,7 +1539,7 @@ bool OFieldDescControl::isCopyAllowed() return bAllowed; } -bool OFieldDescControl::isCutAllowed() +bool OFieldDescControl::isCutAllowed() const { bool bAllowed = (m_pActFocusWindow != nullptr) && (m_pActFocusWindow == pDefault || m_pActFocusWindow == pFormatSample || @@ -1550,7 +1550,7 @@ bool OFieldDescControl::isCutAllowed() return bAllowed; } -bool OFieldDescControl::isPasteAllowed() +bool OFieldDescControl::isPasteAllowed() const { bool bAllowed = (m_pActFocusWindow != nullptr) && (m_pActFocusWindow == pDefault || m_pActFocusWindow == pFormatSample || diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx index be884d43a15c..d591ececdf30 100644 --- a/dbaccess/source/ui/control/tabletree.cxx +++ b/dbaccess/source/ui/control/tabletree.cxx @@ -457,7 +457,7 @@ void TableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConne m_xTreeView->make_sorted(); } -bool TableTreeListBox::isWildcardChecked(weld::TreeIter& rEntry) +bool TableTreeListBox::isWildcardChecked(const weld::TreeIter& rEntry) { return m_xTreeView->get_text_emphasis(rEntry, m_nTextColumn); } @@ -902,7 +902,7 @@ void OTableTreeListBox::removedTable( const OUString& _rName ) } } -std::unique_ptr<weld::TreeIter> TableTreeListBox::GetEntryPosByName(const OUString& aName, weld::TreeIter* pStart, const IEntryFilter* _pFilter) const +std::unique_ptr<weld::TreeIter> TableTreeListBox::GetEntryPosByName(const OUString& aName, const weld::TreeIter* pStart, const IEntryFilter* _pFilter) const { auto xEntry(m_xTreeView->make_iterator(pStart)); if (!pStart && !m_xTreeView->get_iter_first(*xEntry)) |