summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 10:25:09 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-29 06:46:40 +0000
commit6c1cabe677f5eb24b465dd6e316c8c66df64bb29 (patch)
tree511a164130e1c4fdc9be4e7c54d32fd4eac9eb78 /include/connectivity
parentef2e135cfb8f107a154aaab9b54f2dfca0edf6a0 (diff)
loplugin:unnecessarysuperclass, merge IWarningsContainer..
..into WarningsContainer Change-Id: I682528a4eb1b1298faf12b2d498db65f94800cd5 Reviewed-on: https://gerrit.libreoffice.org/15905 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/warningscontainer.hxx46
1 files changed, 12 insertions, 34 deletions
diff --git a/include/connectivity/warningscontainer.hxx b/include/connectivity/warningscontainer.hxx
index 4d652b2ba3a6..978c9892ed95 100644
--- a/include/connectivity/warningscontainer.hxx
+++ b/include/connectivity/warningscontainer.hxx
@@ -29,42 +29,21 @@
namespace dbtools
{
-
-
- //= IWarningsContainer
-
- class SAL_NO_VTABLE IWarningsContainer
- {
- public:
- virtual void appendWarning(const ::com::sun::star::sdbc::SQLException& _rWarning) = 0;
- virtual void appendWarning(const ::com::sun::star::sdbc::SQLWarning& _rWarning) = 0;
- virtual void appendWarning(const ::com::sun::star::sdb::SQLContext& _rContext) = 0;
-
- protected:
- ~IWarningsContainer() {}
- };
-
-
- //= WarningsContainer
-
/** helper class for implementing XWarningsSupplier, which mixes own warnings with
warnings obtained from an external instance
*/
- class OOO_DLLPUBLIC_DBTOOLS WarningsContainer : public IWarningsContainer
+ class OOO_DLLPUBLIC_DBTOOLS WarningsContainer
{
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XWarningsSupplier > m_xExternalWarnings;
- ::com::sun::star::uno::Any m_aOwnWarnings;
+ css::uno::Reference< css::sdbc::XWarningsSupplier > m_xExternalWarnings;
+ css::uno::Any m_aOwnWarnings;
public:
- WarningsContainer() { }
- WarningsContainer( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XWarningsSupplier >& _rxExternalWarnings )
- :m_xExternalWarnings( _rxExternalWarnings )
- {
- }
- virtual ~WarningsContainer();
+ WarningsContainer() {}
+ WarningsContainer( const css::uno::Reference< css::sdbc::XWarningsSupplier >& _rxExternalWarnings )
+ :m_xExternalWarnings( _rxExternalWarnings ) {}
- void setExternalWarnings( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XWarningsSupplier >& _rxExternalWarnings )
+ void setExternalWarnings( const css::uno::Reference< css::sdbc::XWarningsSupplier >& _rxExternalWarnings )
{
m_xExternalWarnings = _rxExternalWarnings;
}
@@ -81,15 +60,14 @@ namespace dbtools
void appendWarning(
const OUString& _rWarning,
const sal_Char* _pAsciiSQLState,
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext );
+ const css::uno::Reference< css::uno::XInterface >& _rxContext );
- // IWarningsContainer
- virtual void appendWarning(const ::com::sun::star::sdbc::SQLException& _rWarning) SAL_OVERRIDE;
- virtual void appendWarning(const ::com::sun::star::sdbc::SQLWarning& _rWarning) SAL_OVERRIDE;
- virtual void appendWarning(const ::com::sun::star::sdb::SQLContext& _rContext) SAL_OVERRIDE;
+ void appendWarning(const css::sdbc::SQLException& _rWarning);
+ void appendWarning(const css::sdbc::SQLWarning& _rWarning);
+ void appendWarning(const css::sdb::SQLContext& _rContext);
// XWarningsSupplier equivalents
- ::com::sun::star::uno::Any SAL_CALL getWarnings( ) const;
+ css::uno::Any SAL_CALL getWarnings( ) const;
void SAL_CALL clearWarnings( );
};