summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-16 10:11:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-18 10:03:44 +0000
commit2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch)
tree66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /connectivity
parent4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff)
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other plugins too. Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035 Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mork/MQueryHelper.hxx1
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx8
-rw-r--r--connectivity/source/inc/RowFunctionParser.hxx4
-rw-r--r--connectivity/source/inc/TSortIndex.hxx3
-rw-r--r--connectivity/source/inc/file/fcode.hxx2
-rw-r--r--connectivity/source/inc/file/quotedstring.hxx1
-rw-r--r--connectivity/source/inc/java/math/BigDecimal.hxx2
-rw-r--r--connectivity/source/inc/java/sql/DriverPropertyInfo.hxx2
-rw-r--r--connectivity/source/inc/java/sql/SQLException.hxx1
-rw-r--r--connectivity/source/inc/java/util/Property.hxx2
10 files changed, 1 insertions, 25 deletions
diff --git a/connectivity/source/drivers/mork/MQueryHelper.hxx b/connectivity/source/drivers/mork/MQueryHelper.hxx
index f8621bcf00e9..1081f75ccd0d 100644
--- a/connectivity/source/drivers/mork/MQueryHelper.hxx
+++ b/connectivity/source/drivers/mork/MQueryHelper.hxx
@@ -56,7 +56,6 @@ namespace connectivity
protected:
node_type m_eNodeType;
- MQueryExpressionBase() : m_eNodeType( Unknown ) {}
explicit MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {}
public:
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
index 61c76c1c74dc..25874dfe5c0b 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
@@ -30,14 +30,6 @@ struct ini_NameValue
{
OUString sName;
OUString sValue;
-
- inline ini_NameValue()
- {}
- inline ini_NameValue(
- OUString const & name, OUString const & value )
- : sName( name ),
- sValue( value )
- {}
};
typedef std::list<
diff --git a/connectivity/source/inc/RowFunctionParser.hxx b/connectivity/source/inc/RowFunctionParser.hxx
index 49dad8774e85..a0a8849463a0 100644
--- a/connectivity/source/inc/RowFunctionParser.hxx
+++ b/connectivity/source/inc/RowFunctionParser.hxx
@@ -62,7 +62,6 @@ typedef std::shared_ptr< ExpressionNode > ExpressionNodeSharedPtr;
*/
struct OOO_DLLPUBLIC_DBTOOLS ParseError
{
- ParseError() {}
ParseError( const char* ) {}
};
@@ -108,8 +107,7 @@ public:
private:
// disabled constructor/destructor, since this is
// supposed to be a singleton
- FunctionParser();
-
+ FunctionParser() = delete;
FunctionParser(const FunctionParser&) = delete;
FunctionParser& operator=( const FunctionParser& ) = delete;
};
diff --git a/connectivity/source/inc/TSortIndex.hxx b/connectivity/source/inc/TSortIndex.hxx
index c633526cc830..07442209b809 100644
--- a/connectivity/source/inc/TSortIndex.hxx
+++ b/connectivity/source/inc/TSortIndex.hxx
@@ -108,9 +108,6 @@ namespace connectivity
OKeySet()
: ORefVector<sal_Int32>()
, m_bFrozen(false){}
- OKeySet(Vector::size_type _nSize)
- : ORefVector<sal_Int32>(_nSize)
- , m_bFrozen(false){}
bool isFrozen() const { return m_bFrozen; }
void setFrozen() { m_bFrozen = true; }
diff --git a/connectivity/source/inc/file/fcode.hxx b/connectivity/source/inc/file/fcode.hxx
index a4f2d659f628..c5deb00a810e 100644
--- a/connectivity/source/inc/file/fcode.hxx
+++ b/connectivity/source/inc/file/fcode.hxx
@@ -141,8 +141,6 @@ namespace connectivity
class OOperandResult : public OOperandValue
{
protected:
- OOperandResult(const ORowSetValue& _rVar, sal_Int32 eDbType)
- :OOperandValue(_rVar, eDbType) {}
OOperandResult(sal_Int32 eDbType)
:OOperandValue(eDbType) {}
public:
diff --git a/connectivity/source/inc/file/quotedstring.hxx b/connectivity/source/inc/file/quotedstring.hxx
index 05246ea7676c..ead25981627e 100644
--- a/connectivity/source/inc/file/quotedstring.hxx
+++ b/connectivity/source/inc/file/quotedstring.hxx
@@ -34,7 +34,6 @@ namespace connectivity
OUString m_sString;
public:
QuotedTokenizedString() {}
- QuotedTokenizedString(const OUString& _sString) : m_sString(_sString){}
sal_Int32 GetTokenCount( sal_Unicode cTok , sal_Unicode cStrDel ) const;
OUString GetTokenSpecial(sal_Int32& nStartPos, sal_Unicode cTok = ';', sal_Unicode cStrDel = '\0') const;
diff --git a/connectivity/source/inc/java/math/BigDecimal.hxx b/connectivity/source/inc/java/math/BigDecimal.hxx
index cea8f0cd35f7..e3033c88f339 100644
--- a/connectivity/source/inc/java/math/BigDecimal.hxx
+++ b/connectivity/source/inc/java/math/BigDecimal.hxx
@@ -32,8 +32,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_math_BigDecimal();
- // a Constructor, that is needed for when Returning the Object is needed:
- java_math_BigDecimal( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
java_math_BigDecimal( const OUString& _par0 );
java_math_BigDecimal( const double& _par0 );
diff --git a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
index 1db9dae973e2..a745fefb62c1 100644
--- a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
+++ b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
@@ -37,8 +37,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_sql_DriverPropertyInfo();
- // A ctor that is needed for returning the object
- java_sql_DriverPropertyInfo( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
};
}
diff --git a/connectivity/source/inc/java/sql/SQLException.hxx b/connectivity/source/inc/java/sql/SQLException.hxx
index 7efedfa1d2f7..b8794e9502e4 100644
--- a/connectivity/source/inc/java/sql/SQLException.hxx
+++ b/connectivity/source/inc/java/sql/SQLException.hxx
@@ -31,7 +31,6 @@ namespace connectivity
{
public:
// A ctor that is needed for returning the object
- java_sql_SQLException(){}
java_sql_SQLException( const java_sql_SQLException_BASE& _rException,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> & _rContext);
};
diff --git a/connectivity/source/inc/java/util/Property.hxx b/connectivity/source/inc/java/util/Property.hxx
index e9dd3d1c8a53..bb9c01bfc6f2 100644
--- a/connectivity/source/inc/java/util/Property.hxx
+++ b/connectivity/source/inc/java/util/Property.hxx
@@ -31,8 +31,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_util_Properties();
- // A ctor that is needed for returning the object
- java_util_Properties( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
java_util_Properties( );
void setProperty(const OUString& key, const OUString& value);
};