From 5170614a3160dceba63478291a00bbde9d37729f Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 25 Feb 2021 14:48:36 +0200 Subject: loplugin:refcounting in connectivity Change-Id: Iee324d84334f60a13615a4d422d480c9c597fdbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111539 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/inc/component/CPreparedStatement.hxx | 2 +- connectivity/source/inc/component/CStatement.hxx | 2 +- connectivity/source/inc/dbase/DPreparedStatement.hxx | 2 +- connectivity/source/inc/dbase/DStatement.hxx | 2 +- connectivity/source/inc/file/FPreparedStatement.hxx | 2 +- connectivity/source/inc/file/FStatement.hxx | 4 ++-- connectivity/source/inc/flat/EPreparedStatement.hxx | 2 +- connectivity/source/inc/flat/EStatement.hxx | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 'connectivity/source/inc') diff --git a/connectivity/source/inc/component/CPreparedStatement.hxx b/connectivity/source/inc/component/CPreparedStatement.hxx index cd104abd68cd..a7d8b0fb78ac 100644 --- a/connectivity/source/inc/component/CPreparedStatement.hxx +++ b/connectivity/source/inc/component/CPreparedStatement.hxx @@ -29,7 +29,7 @@ namespace connectivity::component class OOO_DLLPUBLIC_FILE OComponentPreparedStatement : public file::OPreparedStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: OComponentPreparedStatement( file::OConnection* _pConnection) : file::OPreparedStatement( _pConnection){} DECLARE_SERVICE_INFO(); diff --git a/connectivity/source/inc/component/CStatement.hxx b/connectivity/source/inc/component/CStatement.hxx index dd6bea02d0e1..8e2bd15f3648 100644 --- a/connectivity/source/inc/component/CStatement.hxx +++ b/connectivity/source/inc/component/CStatement.hxx @@ -29,7 +29,7 @@ namespace connectivity::component class OOO_DLLPUBLIC_FILE OComponentStatement : public file::OStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: OComponentStatement( file::OConnection* _pConnection) : file::OStatement( _pConnection){} DECLARE_SERVICE_INFO(); diff --git a/connectivity/source/inc/dbase/DPreparedStatement.hxx b/connectivity/source/inc/dbase/DPreparedStatement.hxx index 7ffa1bfa091e..067f313601f3 100644 --- a/connectivity/source/inc/dbase/DPreparedStatement.hxx +++ b/connectivity/source/inc/dbase/DPreparedStatement.hxx @@ -28,7 +28,7 @@ namespace connectivity::dbase class ODbasePreparedStatement : public file::OPreparedStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: ODbasePreparedStatement( file::OConnection* _pConnection) : file::OPreparedStatement( _pConnection){} DECLARE_SERVICE_INFO(); diff --git a/connectivity/source/inc/dbase/DStatement.hxx b/connectivity/source/inc/dbase/DStatement.hxx index defcf1c769a6..2e3820389f47 100644 --- a/connectivity/source/inc/dbase/DStatement.hxx +++ b/connectivity/source/inc/dbase/DStatement.hxx @@ -28,7 +28,7 @@ namespace connectivity::dbase class ODbaseStatement : public file::OStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: ODbaseStatement( file::OConnection* _pConnection) : file::OStatement( _pConnection){} DECLARE_SERVICE_INFO(); diff --git a/connectivity/source/inc/file/FPreparedStatement.hxx b/connectivity/source/inc/file/FPreparedStatement.hxx index d8e86a3f49cf..973b8ecb3a84 100644 --- a/connectivity/source/inc/file/FPreparedStatement.hxx +++ b/connectivity/source/inc/file/FPreparedStatement.hxx @@ -48,7 +48,7 @@ namespace connectivity::file ::rtl::Reference m_xParamColumns; // the parameter columns // factory method for resultset's - virtual OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; ::rtl::Reference< OResultSet > makeResultSet(); void initResultSet(OResultSet*); diff --git a/connectivity/source/inc/file/FStatement.hxx b/connectivity/source/inc/file/FStatement.hxx index 93063d460794..f4b6687dfc02 100644 --- a/connectivity/source/inc/file/FStatement.hxx +++ b/connectivity/source/inc/file/FStatement.hxx @@ -117,7 +117,7 @@ namespace connectivity::file virtual void parseParamterElem(const OUString& _sColumnName,OSQLParseNode* pRow_Value_Constructor_Elem); // factory method for resultset's - virtual OResultSet* createResultSet() = 0; + virtual rtl::Reference createResultSet() = 0; // OPropertyArrayUsageHelper virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override; // OPropertySetHelper @@ -175,7 +175,7 @@ namespace connectivity::file { protected: // factory method for resultset's - virtual OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: // a Constructor, that is needed for when Returning the Object is needed: OStatement( OConnection* _pConnection) : OStatement_BASE2( _pConnection){} diff --git a/connectivity/source/inc/flat/EPreparedStatement.hxx b/connectivity/source/inc/flat/EPreparedStatement.hxx index 216051d168a9..bb2bf4ad1749 100644 --- a/connectivity/source/inc/flat/EPreparedStatement.hxx +++ b/connectivity/source/inc/flat/EPreparedStatement.hxx @@ -28,7 +28,7 @@ namespace connectivity::flat class OFlatPreparedStatement : public file::OPreparedStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: OFlatPreparedStatement( file::OConnection* _pConnection) : file::OPreparedStatement( _pConnection){} DECLARE_SERVICE_INFO(); diff --git a/connectivity/source/inc/flat/EStatement.hxx b/connectivity/source/inc/flat/EStatement.hxx index add447e5dabc..def70f681be9 100644 --- a/connectivity/source/inc/flat/EStatement.hxx +++ b/connectivity/source/inc/flat/EStatement.hxx @@ -28,7 +28,7 @@ namespace connectivity::flat class OFlatStatement : public file::OStatement { protected: - virtual file::OResultSet* createResultSet() override; + virtual rtl::Reference createResultSet() override; public: OFlatStatement( file::OConnection* _pConnection) : file::OStatement( _pConnection){} DECLARE_SERVICE_INFO(); -- cgit