summaryrefslogtreecommitdiff
path: root/connectivity/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-21 20:21:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 09:35:02 +0200
commitb1dc8e2379b53c3d57283d43655cf4d51d586ec0 (patch)
tree06c46265e3bd17f8d1af0e9551b05bf6e22891a7 /connectivity/source/inc
parent7a769391772b1184d801a123fb226017e8d65848 (diff)
loplugin:constmethod in connectivity
Change-Id: Idd81089279b23d93276107d84446c77e49d42b77 Reviewed-on: https://gerrit.libreoffice.org/77933 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/inc')
-rw-r--r--connectivity/source/inc/dbase/DIndex.hxx4
-rw-r--r--connectivity/source/inc/dbase/dindexnode.hxx8
-rw-r--r--connectivity/source/inc/file/FTable.hxx2
-rw-r--r--connectivity/source/inc/flat/ETable.hxx2
-rw-r--r--connectivity/source/inc/hsqldb/HTable.hxx2
-rw-r--r--connectivity/source/inc/mysql/YTable.hxx2
-rw-r--r--connectivity/source/inc/odbc/OBoundParam.hxx4
7 files changed, 12 insertions, 12 deletions
diff --git a/connectivity/source/inc/dbase/DIndex.hxx b/connectivity/source/inc/dbase/DIndex.hxx
index e1452967e130..d4a9d7dbfafd 100644
--- a/connectivity/source/inc/dbase/DIndex.hxx
+++ b/connectivity/source/inc/dbase/DIndex.hxx
@@ -82,7 +82,7 @@ namespace connectivity
ODbaseTable* m_pTable;
bool m_bUseCollector : 1; // Use the Garbage Collector
- OUString getCompletePath();
+ OUString getCompletePath() const;
void closeImpl();
// Closes and kills the index file and throws an error
void impl_killFileAndthrowError_throw(const char* pErrorId, const OUString& _sFile);
@@ -106,7 +106,7 @@ namespace connectivity
void SetRootPos(sal_uInt32 nPos) {m_nRootPage = nPos;}
void SetPageCount(sal_uInt32 nCount) {m_nPageCount = nCount;}
- sal_uInt32 GetPageCount() {return m_nPageCount;}
+ sal_uInt32 GetPageCount() const {return m_nPageCount;}
sal_uInt16 GetMaxNodes() const {return m_aHeader.db_maxkeys;}
diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx
index ec5896058aa5..8a8110253edc 100644
--- a/connectivity/source/inc/dbase/dindexnode.hxx
+++ b/connectivity/source/inc/dbase/dindexnode.hxx
@@ -156,7 +156,7 @@ namespace connectivity
bool IsRoot() const;
bool IsLeaf() const;
bool IsModified() const;
- bool HasParent();
+ bool HasParent() const;
bool IsFull() const;
@@ -164,7 +164,7 @@ namespace connectivity
ONDXPagePtr& GetChild(ODbaseIndex const * pIndex = nullptr);
// Parent does not need to be reloaded
- const ONDXPagePtr& GetParent();
+ const ONDXPagePtr& GetParent() const;
ODbaseIndex& GetIndex() {return rIndex;}
const ODbaseIndex& GetIndex() const {return rIndex;}
@@ -212,8 +212,8 @@ namespace connectivity
inline bool ONDXPage::IsRoot() const {return !aParent.Is();}
inline bool ONDXPage::IsLeaf() const {return !aChild.HasPage();}
inline bool ONDXPage::IsModified() const {return bModified;}
- inline bool ONDXPage::HasParent() {return aParent.Is();}
- inline const ONDXPagePtr& ONDXPage::GetParent() {return aParent;}
+ inline bool ONDXPage::HasParent() const {return aParent.Is();}
+ inline const ONDXPagePtr& ONDXPage::GetParent() const {return aParent;}
inline void ONDXPage::SetParent(ONDXPagePtr aPa = ONDXPagePtr())
{
diff --git a/connectivity/source/inc/file/FTable.hxx b/connectivity/source/inc/file/FTable.hxx
index bd12eca69eee..d9ae501bd3f4 100644
--- a/connectivity/source/inc/file/FTable.hxx
+++ b/connectivity/source/inc/file/FTable.hxx
@@ -85,7 +85,7 @@ namespace connectivity
OUString SAL_CALL getName() override { return m_Name; }
- const OUString& getSchema() { return m_SchemaName; }
+ const OUString& getSchema() const { return m_SchemaName; }
bool isReadOnly() const { return !m_bWriteable; }
// m_pFileStream && !m_pFileStream->IsWritable(); }
// css::lang::XUnoTunnel
diff --git a/connectivity/source/inc/flat/ETable.hxx b/connectivity/source/inc/flat/ETable.hxx
index fccc731185c0..7dbc56de195b 100644
--- a/connectivity/source/inc/flat/ETable.hxx
+++ b/connectivity/source/inc/flat/ETable.hxx
@@ -100,7 +100,7 @@ namespace connectivity
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
static css::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
- OUString getEntry();
+ OUString getEntry() const;
};
}
}
diff --git a/connectivity/source/inc/hsqldb/HTable.hxx b/connectivity/source/inc/hsqldb/HTable.hxx
index 2bab33454946..9f3bbe42f18c 100644
--- a/connectivity/source/inc/hsqldb/HTable.hxx
+++ b/connectivity/source/inc/hsqldb/HTable.hxx
@@ -101,7 +101,7 @@ namespace connectivity
/**
returns the ALTER TABLE XXX COLUMN statement
*/
- OUString getAlterTableColumnPart();
+ OUString getAlterTableColumnPart() const;
// some methods to alter table structures
void alterColumnType(sal_Int32 nNewType,const OUString& _rColName,const css::uno::Reference< css::beans::XPropertySet >& _xDescriptor);
diff --git a/connectivity/source/inc/mysql/YTable.hxx b/connectivity/source/inc/mysql/YTable.hxx
index 435505a60334..5c5f5e48ec7b 100644
--- a/connectivity/source/inc/mysql/YTable.hxx
+++ b/connectivity/source/inc/mysql/YTable.hxx
@@ -100,7 +100,7 @@ namespace connectivity
virtual void SAL_CALL alterColumnByName( const OUString& colName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
/** returns the ALTER TABLE XXX statement
*/
- OUString getAlterTableColumnPart();
+ OUString getAlterTableColumnPart() const;
// some methods to alter table structures
void alterColumnType(sal_Int32 nNewType,const OUString& _rColName,const css::uno::Reference< css::beans::XPropertySet >& _xDescriptor);
diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 41ddf5076ae4..0616760bfaeb 100644
--- a/connectivity/source/inc/odbc/OBoundParam.hxx
+++ b/connectivity/source/inc/odbc/OBoundParam.hxx
@@ -87,7 +87,7 @@ namespace connectivity
// getInputStream
// Gets the input stream for the bound parameter
- const css::uno::Reference< css::io::XInputStream>& getInputStream ()
+ const css::uno::Reference< css::io::XInputStream>& getInputStream () const
{
return paramInputStream;
}
@@ -96,7 +96,7 @@ namespace connectivity
// getInputStreamLen
// Gets the input stream length for the bound parameter
- sal_Int32 getInputStreamLen ()
+ sal_Int32 getInputStreamLen () const
{
return paramInputStreamLen;
}