summaryrefslogtreecommitdiffstats
path: root/dbaccess/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 12:30:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-29 12:43:37 +0200
commit1820fcbbc38e82daf43ebe759200050ce05b3fe1 (patch)
treef5a494e6a437971ef7b9ae003547d4b156bb8b13 /dbaccess/source
parentFix typo (diff)
downloadcore-1820fcbbc38e82daf43ebe759200050ce05b3fe1.tar.gz
core-1820fcbbc38e82daf43ebe759200050ce05b3fe1.zip
constmethod for accessor-type methods
Apply the constmethod plugin, but only to accessor-type methods, e.g. IsFoo(), GetBar(), etc, where we can be sure of that constifying is a reasonable thing to do. Change-Id: Ibc97f5f359a0992dd1ce2d66f0189f8a0a43d98a Reviewed-on: https://gerrit.libreoffice.org/74269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/control/RelationControl.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx
index 959aee714949..e83d66fa74cf 100644
--- a/dbaccess/source/ui/control/RelationControl.cxx
+++ b/dbaccess/source/ui/control/RelationControl.cxx
@@ -76,7 +76,7 @@ namespace dbaui
*/
sal_uInt16 getColumnIdent( sal_uInt16 _nColId ) const;
public:
- explicit ORelationControl(css::uno::Reference<css::awt::XWindow>& rParent);
+ explicit ORelationControl(const css::uno::Reference<css::awt::XWindow>& rParent);
void SetController(OTableListBoxControl* pController)
{
m_pBoxControl = pController;
@@ -126,7 +126,7 @@ namespace dbaui
};
// class ORelationControl
- ORelationControl::ORelationControl(css::uno::Reference<css::awt::XWindow>& rParent)
+ ORelationControl::ORelationControl(const css::uno::Reference<css::awt::XWindow>& rParent)
: EditBrowseBox(VCLUnoHelper::GetWindow(rParent),
EditBrowseBoxFlags::SMART_TAB_TRAVEL | EditBrowseBoxFlags::NO_HANDLE_COLUMN_CONTENT,
WB_TABSTOP | WB_BORDER,
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index 55e3e49a49b6..abc203ce9c13 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::sdbc;
-DlgQryJoin::DlgQryJoin(OQueryTableView* pParent,
+DlgQryJoin::DlgQryJoin(const OQueryTableView* pParent,
const TTableConnectionData::value_type& _pData,
const OJoinTableView::OTableWindowMap* _pTableMap,
const Reference< XConnection >& _xConnection,
diff --git a/dbaccess/source/ui/querydesign/querydlg.hxx b/dbaccess/source/ui/querydesign/querydlg.hxx
index 3304a50ed50b..4631d7fbe29f 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hxx
+++ b/dbaccess/source/ui/querydesign/querydlg.hxx
@@ -54,7 +54,7 @@ namespace dbaui
*/
void setJoinType(EJoinType _eNewJoinType);
public:
- DlgQryJoin( OQueryTableView * pParent,
+ DlgQryJoin( const OQueryTableView * pParent,
const TTableConnectionData::value_type& pData,
const OJoinTableView::OTableWindowMap* _pTableMap,
const css::uno::Reference< css::sdbc::XConnection >& _xConnection,