summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-05 11:47:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-07 07:19:33 +0100
commite1755ac8c42ba4657881ecf7aa652a137abf3267 (patch)
tree4277345d806eba389b60cce2f0f11c122fefbc2d /include
parentc7e5c7da98d40852d18bd7683e40c9679836ba49 (diff)
loplugin:countusersofdefaultparams in connectivity
Change-Id: Ia613257f2de1395c6629c1c37026ed48d4b927c8 Reviewed-on: https://gerrit.libreoffice.org/45854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/connectivity/FValue.hxx4
-rw-r--r--include/connectivity/TColumnsHelper.hxx2
-rw-r--r--include/connectivity/dbexception.hxx2
-rw-r--r--include/connectivity/dbtools.hxx8
-rw-r--r--include/connectivity/sqlparse.hxx2
5 files changed, 9 insertions, 9 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx
index d2fbfd47e9ba..33279f12757e 100644
--- a/include/connectivity/FValue.hxx
+++ b/include/connectivity/FValue.hxx
@@ -381,10 +381,10 @@ namespace connectivity
void setBound(bool _bBound) { m_bBound = _bBound; }
bool isModified() const { return m_bModified; }
- void setModified(bool _bMod=true) { m_bModified = _bMod; }
+ void setModified(bool _bMod) { m_bModified = _bMod; }
bool isSigned() const { return m_bSigned; }
- void setSigned(bool _bSig=true);
+ void setSigned(bool _bSig);
sal_Int32 getTypeKind() const { return m_eTypeKind; }
void setTypeKind(sal_Int32 _eType);
diff --git a/include/connectivity/TColumnsHelper.hxx b/include/connectivity/TColumnsHelper.hxx
index 2a1580485a1d..3aea77fd2955 100644
--- a/include/connectivity/TColumnsHelper.hxx
+++ b/include/connectivity/TColumnsHelper.hxx
@@ -48,7 +48,7 @@ namespace connectivity
,bool _bCase
,::osl::Mutex& _rMutex
,const TStringVector &_rVector
- ,bool _bUseHardRef = true
+ ,bool _bUseHardRef
);
virtual ~OColumnsHelper() override;
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx
index 3dcdde0cfcee..e273cf8cb14c 100644
--- a/include/connectivity/dbexception.hxx
+++ b/include/connectivity/dbexception.hxx
@@ -309,7 +309,7 @@ OOO_DLLPUBLIC_DBTOOLS void throwSQLException(
const OUString& _rMessage,
const OUString& _rSQLState,
const css::uno::Reference< css::uno::XInterface >& _rxContext,
- const sal_Int32 _nErrorCode = 0
+ const sal_Int32 _nErrorCode
);
diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx
index 885cf82e50b9..432d5a66fadf 100644
--- a/include/connectivity/dbtools.hxx
+++ b/include/connectivity/dbtools.hxx
@@ -704,9 +704,9 @@ namespace dbtools
const OUString& _rName,
bool _bCase,
bool _bQueryForInfo,
- bool _bIsAutoIncrement = false,
- bool _bIsCurrency = false,
- sal_Int32 _nDataType = css::sdbc::DataType::OTHER);
+ bool _bIsAutoIncrement,
+ bool _bIsCurrency,
+ sal_Int32 _nDataType);
/** tries to locate the corresponding DataDefinitionSupplier for the given url and connection
@param _rsUrl
@@ -803,7 +803,7 @@ namespace dbtools
OOO_DLLPUBLIC_DBTOOLS bool isAggregateColumn(
const css::uno::Reference< css::container::XNameAccess > &_xColumns,
const OUString &_sName,
- bool whenNotFound = false
+ bool whenNotFound
);
/** is this column an aggregate?
diff --git a/include/connectivity/sqlparse.hxx b/include/connectivity/sqlparse.hxx
index 49db658b202f..7dda08c4bca7 100644
--- a/include/connectivity/sqlparse.hxx
+++ b/include/connectivity/sqlparse.hxx
@@ -207,7 +207,7 @@ namespace connectivity
// RuleId with enum, far more efficient
static sal_uInt32 RuleID(OSQLParseNode::Rule eRule);
// compares the _sFunctionName with all known function names and return the DataType of the return value
- static sal_Int32 getFunctionReturnType(const OUString& _sFunctionName, const IParseContext* pContext = nullptr);
+ static sal_Int32 getFunctionReturnType(const OUString& _sFunctionName, const IParseContext* pContext);
// returns the type for a parameter in a given function name
static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos);