summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
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 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetRow.hxx1
-rw-r--r--dbaccess/source/core/api/datasettings.cxx15
-rw-r--r--dbaccess/source/core/inc/core_resource.hxx2
-rw-r--r--dbaccess/source/core/inc/datasettings.hxx2
-rw-r--r--dbaccess/source/core/recovery/subcomponents.hxx6
-rw-r--r--dbaccess/source/ext/macromigration/migrationerror.hxx6
-rw-r--r--dbaccess/source/filter/xml/xmlExport.hxx3
-rw-r--r--dbaccess/source/ui/dlg/TextConnectionHelper.hxx2
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.hxx1
-rw-r--r--dbaccess/source/ui/dlg/detailpages.hxx7
-rw-r--r--dbaccess/source/ui/inc/SqlNameEdit.hxx10
-rw-r--r--dbaccess/source/ui/inc/TokenWriter.hxx6
-rw-r--r--dbaccess/source/ui/inc/defaultobjectnamecheck.hxx6
-rw-r--r--dbaccess/source/ui/inc/indexes.hxx3
-rw-r--r--dbaccess/source/ui/misc/UpdateHelperImpl.hxx49
15 files changed, 3 insertions, 116 deletions
diff --git a/dbaccess/source/core/api/RowSetRow.hxx b/dbaccess/source/core/api/RowSetRow.hxx
index ece120f3ebd0..93368e089cea 100644
--- a/dbaccess/source/core/api/RowSetRow.hxx
+++ b/dbaccess/source/core/api/RowSetRow.hxx
@@ -38,7 +38,6 @@ namespace dbaccess
ORowSetOldRowHelper& operator=(const ORowSetOldRowHelper& _rRH) = delete;
ORowSetOldRowHelper(const ORowSetOldRowHelper& _rRh) = delete;
public:
- ORowSetOldRowHelper(){}
explicit ORowSetOldRowHelper(const ORowSetRow& _rRow)
: m_aRow(_rRow)
{}
diff --git a/dbaccess/source/core/api/datasettings.cxx b/dbaccess/source/core/api/datasettings.cxx
index 61c4f7a5ed9d..b5403eb9c537 100644
--- a/dbaccess/source/core/api/datasettings.cxx
+++ b/dbaccess/source/core/api/datasettings.cxx
@@ -111,21 +111,6 @@ ODataSettings_Base::ODataSettings_Base()
{
}
-ODataSettings_Base::ODataSettings_Base(const ODataSettings_Base& _rSource)
- :m_sFilter( _rSource.m_sFilter )
- ,m_sHavingClause( _rSource.m_sHavingClause )
- ,m_sGroupBy( _rSource.m_sGroupBy )
- ,m_sOrder( _rSource.m_sOrder )
- ,m_bApplyFilter( _rSource.m_bApplyFilter )
- ,m_aFont( _rSource.m_aFont )
- ,m_aRowHeight( _rSource.m_aRowHeight )
- ,m_aTextColor( _rSource.m_aTextColor )
- ,m_aTextLineColor( _rSource.m_aTextLineColor )
- ,m_nFontEmphasis( _rSource.m_nFontEmphasis )
- ,m_nFontRelief( _rSource.m_nFontRelief )
-{
-}
-
ODataSettings_Base::~ODataSettings_Base()
{
}
diff --git a/dbaccess/source/core/inc/core_resource.hxx b/dbaccess/source/core/inc/core_resource.hxx
index 4db3848417fe..e09f96847050 100644
--- a/dbaccess/source/core/inc/core_resource.hxx
+++ b/dbaccess/source/core/inc/core_resource.hxx
@@ -44,7 +44,7 @@ namespace dbaccess
private:
// no instantiation allowed
- ResourceManager() { }
+ ResourceManager() = delete;
~ResourceManager() { }
protected:
diff --git a/dbaccess/source/core/inc/datasettings.hxx b/dbaccess/source/core/inc/datasettings.hxx
index 01e966691b56..1ca0c693cc50 100644
--- a/dbaccess/source/core/inc/datasettings.hxx
+++ b/dbaccess/source/core/inc/datasettings.hxx
@@ -52,7 +52,7 @@ public:
protected:
ODataSettings_Base();
- ODataSettings_Base(const ODataSettings_Base& _rSource);
+ ODataSettings_Base(const ODataSettings_Base& _rSource) = delete;
~ODataSettings_Base();
};
// ODataSettings - a base class which implements the property handling
diff --git a/dbaccess/source/core/recovery/subcomponents.hxx b/dbaccess/source/core/recovery/subcomponents.hxx
index e48d32be6392..763b23f396fa 100644
--- a/dbaccess/source/core/recovery/subcomponents.hxx
+++ b/dbaccess/source/core/recovery/subcomponents.hxx
@@ -54,12 +54,6 @@ namespace dbaccess
,bForEditing( false )
{
}
-
- SubComponentDescriptor( const OUString& i_rName, const bool i_bForEditing )
- :sName( i_rName )
- ,bForEditing( i_bForEditing )
- {
- }
};
typedef std::unordered_map< OUString, SubComponentDescriptor, OUStringHash > MapStringToCompDesc;
diff --git a/dbaccess/source/ext/macromigration/migrationerror.hxx b/dbaccess/source/ext/macromigration/migrationerror.hxx
index a714388b72b3..00be94df94be 100644
--- a/dbaccess/source/ext/macromigration/migrationerror.hxx
+++ b/dbaccess/source/ext/macromigration/migrationerror.hxx
@@ -65,12 +65,6 @@ namespace dbmm
::std::vector< OUString > aErrorDetails;
const css::uno::Any aCaughtException;
- explicit MigrationError(
- const MigrationErrorType _eType )
- :eType( _eType )
- {
- }
-
MigrationError(
const MigrationErrorType _eType,
const css::uno::Any& _rCaughtException )
diff --git a/dbaccess/source/filter/xml/xmlExport.hxx b/dbaccess/source/filter/xml/xmlExport.hxx
index 237d0467792d..4a9c6a141a09 100644
--- a/dbaccess/source/filter/xml/xmlExport.hxx
+++ b/dbaccess/source/filter/xml/xmlExport.hxx
@@ -156,8 +156,7 @@ class ODBExport : public SvXMLExport
rtl::Reference < XMLPropertySetMapper > GetTableStylesPropertySetMapper() const;
-private:
- ODBExport();
+ ODBExport() = delete;
protected:
virtual void ExportStyles_( bool bUsed ) override;
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
index c07f669d2d27..294ed1eeb8c9 100644
--- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
+++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
@@ -42,8 +42,6 @@ namespace dbaui
// OTextConnectionPage
class OTextConnectionHelper : public TabPage
{
- OTextConnectionHelper();
-
public:
OTextConnectionHelper( vcl::Window* pParent, const short _nAvailableSections );
virtual ~OTextConnectionHelper();
diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx
index 385c939d4ab7..53358165c356 100644
--- a/dbaccess/source/ui/dlg/dbfindex.hxx
+++ b/dbaccess/source/ui/dlg/dbfindex.hxx
@@ -60,7 +60,6 @@ private:
TableIndexList aIndexList;
public:
- OTableInfo() { }
explicit OTableInfo( const OUString& rName ) : aTableName(rName) { }
void WriteInfFile( const OUString& rDSN ) const;
diff --git a/dbaccess/source/ui/dlg/detailpages.hxx b/dbaccess/source/ui/dlg/detailpages.hxx
index c6a6eb874956..5ce4eabf3e51 100644
--- a/dbaccess/source/ui/dlg/detailpages.hxx
+++ b/dbaccess/source/ui/dlg/detailpages.hxx
@@ -240,13 +240,6 @@ namespace dbaui
DECL_LINK_TYPED( OnCheckBoxClick, Button*, void );
};
- // OMozillaDetailsPage Detail page for Mozilla and Thunderbird addressbook
- class OMozillaDetailsPage : public OCommonBehaviourTabPage
- {
- public:
- OMozillaDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs );
- };
-
// OTextDetailsPage
class OTextDetailsPage : public OCommonBehaviourTabPage
{
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index ee5fb14d401e..9889c9815d48 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -56,11 +56,6 @@ namespace dbaui
,OSQLNameChecker(_rAllowedChars)
{
}
- OSQLNameEdit(vcl::Window* _pParent,const ResId& _rRes,const OUString& _rAllowedChars = OUString())
- : Edit(_pParent,_rRes)
- ,OSQLNameChecker(_rAllowedChars)
- {
- }
// Window overrides
// virtual bool PreNotify( NotifyEvent& rNEvt );
@@ -77,11 +72,6 @@ namespace dbaui
, OSQLNameChecker(_rAllowedChars)
{
}
- OSQLNameComboBox(vcl::Window* _pParent,const ResId& _rRes,const OUString& _rAllowedChars = OUString())
- : ComboBox(_pParent,_rRes)
- , OSQLNameChecker(_rAllowedChars)
- {
- }
// Window overrides
// Edit
diff --git a/dbaccess/source/ui/inc/TokenWriter.hxx b/dbaccess/source/ui/inc/TokenWriter.hxx
index edee89a421c8..db45468ffc88 100644
--- a/dbaccess/source/ui/inc/TokenWriter.hxx
+++ b/dbaccess/source/ui/inc/TokenWriter.hxx
@@ -212,12 +212,6 @@ namespace dbaui
const css::uno::Reference< css::uno::XComponentContext >& _rM,
const OUString& rExchange = OUString());
- // import data
- ORowSetImportExport(const SharedConnection& _rxConnection,
- const css::uno::Reference< css::uno::XComponentContext >& _rM)
- : ODatabaseImportExport(_rxConnection,nullptr,_rM)
- {}
-
virtual bool Write() override;
virtual bool Read() override;
diff --git a/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx b/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
index 7087d7f87deb..6db7319fd6b5 100644
--- a/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
+++ b/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
@@ -66,9 +66,6 @@ namespace dbaui
const OUString& _rObjectName,
::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
) const override;
-
- private:
- HierarchicalNameCheck(); // never implemented
};
// DynamicTableOrQueryNameCheck
@@ -118,9 +115,6 @@ namespace dbaui
const OUString& _rObjectName,
::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
) const override;
-
- private:
- DynamicTableOrQueryNameCheck(); // never implemented
};
} // namespace dbaui
diff --git a/dbaccess/source/ui/inc/indexes.hxx b/dbaccess/source/ui/inc/indexes.hxx
index 91f5d40fa0c8..b7c765ffc99c 100644
--- a/dbaccess/source/ui/inc/indexes.hxx
+++ b/dbaccess/source/ui/inc/indexes.hxx
@@ -73,9 +73,6 @@ namespace dbaui
bool isNew() const { return getOriginalName().isEmpty(); }
void flagAsNew(const GrantIndexAccess&) { sOriginalName.clear(); }
void flagAsCommitted(const GrantIndexAccess&) { sOriginalName = sName; }
-
- private:
- OIndex(); // not implemented
};
typedef std::vector<OIndex> Indexes;
diff --git a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
index 4d3d8271da1c..d41aec19e284 100644
--- a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
+++ b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
@@ -29,55 +29,6 @@
namespace dbaui
{
- class ORowUpdateHelper : public IUpdateHelper
- {
- css::uno::Reference< css::sdbc::XRowUpdate > m_xRowUpdate;
- css::uno::Reference< css::sdbc::XResultSetUpdate > m_xResultSetUpdate;
- public:
- explicit ORowUpdateHelper(const css::uno::Reference< css::sdbc::XRowSet>& _xRowSet)
- :m_xRowUpdate(_xRowSet,css::uno::UNO_QUERY)
- ,m_xResultSetUpdate(_xRowSet,css::uno::UNO_QUERY)
- {
- }
- virtual ~ORowUpdateHelper() {}
- virtual void updateString(sal_Int32 _nPos, const OUString& _sValue) override
- {
- m_xRowUpdate->updateString(_nPos, _sValue);
- }
- virtual void updateDouble(sal_Int32 _nPos,const double& _nValue) override
- {
- m_xRowUpdate->updateDouble(_nPos, _nValue);
- }
- virtual void updateDate(sal_Int32 _nPos,const css::util::Date& _nValue) override
- {
- m_xRowUpdate->updateDate(_nPos, _nValue);
- }
- virtual void updateTime(sal_Int32 _nPos,const css::util::Time& _nValue) override
- {
- m_xRowUpdate->updateTime(_nPos, _nValue);
- }
- virtual void updateTimestamp(sal_Int32 _nPos,const css::util::DateTime& _nValue) override
- {
- m_xRowUpdate->updateTimestamp(_nPos, _nValue);
- }
- virtual void updateInt(sal_Int32 _nPos, sal_Int32 _nValue) override
- {
- m_xRowUpdate->updateInt(_nPos, _nValue);
- }
- virtual void updateNull(sal_Int32 _nPos, ::sal_Int32) override
- {
- m_xRowUpdate->updateNull(_nPos);
- }
- virtual void moveToInsertRow() override
- {
- m_xResultSetUpdate->moveToInsertRow();
- }
- virtual void insertRow() override
- {
- m_xResultSetUpdate->insertRow();
- }
- };
-
class OParameterUpdateHelper : public IUpdateHelper
{
css::uno::Reference< css::sdbc::XPreparedStatement > m_xPrepared;