diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-09 09:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-10 11:04:12 +0200 |
commit | 183e062e9f22d51e59054396ebb75e2148b067d7 (patch) | |
tree | e668edd447541ffd37b6cf5e660de634c75e83a8 /include/connectivity | |
parent | ea8f32b61a51b6d9cef72bbd5ac701bef2975a39 (diff) |
use SimpleReferenceObject in connectivity module
to replace hand-rolled version
Change-Id: Ib415a6e78733277cbc1c0777d7263b65f404e6a4
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/virtualdbtools.hxx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/include/connectivity/virtualdbtools.hxx b/include/connectivity/virtualdbtools.hxx index 21c6093c5769..70e93c835e6a 100644 --- a/include/connectivity/virtualdbtools.hxx +++ b/include/connectivity/virtualdbtools.hxx @@ -32,6 +32,7 @@ #include <vector> #include <memory> #include <connectivity/dbtoolsdllapi.hxx> +#include <salhelper/simplereferenceobject.hxx> //= forward declarations @@ -112,7 +113,7 @@ namespace connectivity //= IDataAccessTools - class OOO_DLLPUBLIC_DBTOOLS IDataAccessTools : public ::rtl::IReference + class OOO_DLLPUBLIC_DBTOOLS IDataAccessTools : public virtual salhelper::SimpleReferenceObject { public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> getConnection_withFeedback( @@ -219,7 +220,7 @@ namespace connectivity ) = 0; protected: - ~IDataAccessTools() {} + virtual ~IDataAccessTools() {} }; @@ -228,7 +229,7 @@ namespace connectivity /** simple wrapper for the OCharsetMap */ class OOO_DLLPUBLIC_DBTOOLS IDataAccessCharSet : - public ::rtl::IReference + public salhelper::SimpleReferenceObject { // to be extended if necessary .... public: @@ -240,14 +241,14 @@ namespace connectivity ) const = 0; protected: - ~IDataAccessCharSet() {} + virtual ~IDataAccessCharSet() {} }; //= IDataAccessTypeConversion class OOO_DLLPUBLIC_DBTOOLS IDataAccessTypeConversion : - public ::rtl::IReference + public virtual salhelper::SimpleReferenceObject { public: virtual ::com::sun::star::util::Date getStandardDate() const = 0; @@ -271,7 +272,7 @@ namespace connectivity ) const = 0; protected: - ~IDataAccessTypeConversion() {} + virtual ~IDataAccessTypeConversion() {} }; @@ -279,7 +280,7 @@ namespace connectivity /** a simple version of the OSQLParseNode, with all methods being virtual */ - class OOO_DLLPUBLIC_DBTOOLS ISQLParseNode : public ::rtl::IReference + class OOO_DLLPUBLIC_DBTOOLS ISQLParseNode : public salhelper::SimpleReferenceObject { public: virtual void parseNodeToStr(OUString& _rString, @@ -298,7 +299,7 @@ namespace connectivity ) const = 0; protected: - ~ISQLParseNode() {} + virtual ~ISQLParseNode() {} }; @@ -306,7 +307,7 @@ namespace connectivity /** a simple version of the OSQLParser, with all methods being virtual */ - class OOO_DLLPUBLIC_DBTOOLS ISQLParser : public ::rtl::IReference + class OOO_DLLPUBLIC_DBTOOLS ISQLParser : public salhelper::SimpleReferenceObject { public: virtual ::rtl::Reference< ISQLParseNode > predicateTree( @@ -319,7 +320,7 @@ namespace connectivity virtual const IParseContext& getContext() const = 0; protected: - ~ISQLParser() {} + virtual ~ISQLParser() {} }; @@ -328,7 +329,7 @@ namespace connectivity /** the main factory for runtime-loadable tools in the DBTOOLS library */ class OOO_DLLPUBLIC_DBTOOLS IDataAccessToolsFactory : - public ::rtl::IReference + public salhelper::SimpleReferenceObject { public: /// creates a simple version of the class OSQLParser @@ -353,7 +354,7 @@ namespace connectivity ) = 0; protected: - ~IDataAccessToolsFactory() {} + virtual ~IDataAccessToolsFactory() {} }; |