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/tabledesign | |
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/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TEditControl.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/tabledesign/TEditControl.hxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index ea44f81885d8..3c31c7bb0b90 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -1138,7 +1138,7 @@ bool OTableEditorCtrl::IsCopyAllowed() return bIsCopyAllowed; } -bool OTableEditorCtrl::IsPasteAllowed() +bool OTableEditorCtrl::IsPasteAllowed() const { bool bAllowed = GetView()->getController().isAddAllowed(); if ( bAllowed ) diff --git a/dbaccess/source/ui/tabledesign/TEditControl.hxx b/dbaccess/source/ui/tabledesign/TEditControl.hxx index d017e2526d29..fe916961ca1a 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.hxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.hxx @@ -144,7 +144,7 @@ namespace dbaui std::vector< std::shared_ptr<OTableRow> >* GetRowList(){ return m_pRowList; } - const std::shared_ptr<OTableRow>& GetActRow(){ return pActRow; } + const std::shared_ptr<OTableRow>& GetActRow() const { return pActRow; } void CellModified( long nRow, sal_uInt16 nColId ); void SetReadOnly( bool bRead ); @@ -153,8 +153,8 @@ namespace dbaui bool IsCutAllowed(); bool IsCopyAllowed(); - bool IsPasteAllowed(); - bool IsReadOnly() { return bReadOnly;} + bool IsPasteAllowed() const; + bool IsReadOnly() const { return bReadOnly;} OFieldDescription* GetFieldDescr( long nRow ); // Window overrides |