From 6c9917c7a74e1c14f1c60ad40b96470b6ef08936 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Sep 2019 16:08:36 +0200 Subject: loplugin:constmethod in dbaccess Change-Id: I3bb4784e1a2d828eca30f255a9c9bb4248309b81 Reviewed-on: https://gerrit.libreoffice.org/78603 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/tabledesign/TEditControl.cxx | 2 +- dbaccess/source/ui/tabledesign/TEditControl.hxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/ui/tabledesign') 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 >* GetRowList(){ return m_pRowList; } - const std::shared_ptr& GetActRow(){ return pActRow; } + const std::shared_ptr& 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 -- cgit