summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/ado/AConnection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/ado/AConnection.hxx')
-rw-r--r--connectivity/source/inc/ado/AConnection.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/inc/ado/AConnection.hxx b/connectivity/source/inc/ado/AConnection.hxx
index 29f552946a89..c2c82100363d 100644
--- a/connectivity/source/inc/ado/AConnection.hxx
+++ b/connectivity/source/inc/ado/AConnection.hxx
@@ -16,13 +16,13 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_ACONNECTION_HXX
-#define INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_ACONNECTION_HXX
+#pragma once
#include <com/sun/star/sdbc/SQLWarning.hpp>
#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <map>
+#include <string_view>
#include <connectivity/CommonTools.hxx>
#include <OTypeInfo.hxx>
#include <TConnection.hxx>
@@ -57,7 +57,7 @@ namespace connectivity::ado
css::uno::WeakReference< css::sdbcx::XTablesSupplier> m_xCatalog;
ODriver* m_pDriver;
private:
- WpADOConnection* m_pAdoConnection;
+ WpADOConnection m_aAdoConnection;
OCatalog* m_pCatalog;
sal_Int32 m_nEngineType;
bool m_bClosed;
@@ -72,7 +72,7 @@ namespace connectivity::ado
OConnection(ODriver* _pDriver);
// OConnection(const SQLHANDLE _pConnectionHandle);
~OConnection() override;
- void construct(const OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info);
+ void construct(std::u16string_view url,const css::uno::Sequence< css::beans::PropertyValue >& info);
//XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
@@ -107,7 +107,7 @@ namespace connectivity::ado
virtual css::uno::Any SAL_CALL getWarnings( ) override;
virtual void SAL_CALL clearWarnings( ) override;
- WpADOConnection* getConnection() { return m_pAdoConnection; }
+ WpADOConnection& getConnection() { return m_aAdoConnection; }
void setCatalog(const css::uno::WeakReference< css::sdbcx::XTablesSupplier>& _xCat) { m_xCatalog = _xCat; }
void setCatalog(OCatalog* _pCatalog) { m_pCatalog = _pCatalog; }
@@ -130,6 +130,5 @@ namespace connectivity::ado
bool& _brForceToType);
};
}
-#endif // INCLUDED_CONNECTIVITY_SOURCE_INC_ADO_ACONNECTION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */