diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-08-31 20:32:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-08-31 21:44:10 +0200 |
commit | 70d9ae239bb4f5fbde135a7fe13d0a99c60d5172 (patch) | |
tree | a03e908a6b6ef6a9332d460aed4b9373d87142b4 /odk | |
parent | 39c6112b5b493eda042078447bf6c67bb7bd8a34 (diff) |
Use vector and replace m_aBatchList by m_aBatchVector
Change-Id: I7c2c529eb78679f9733374bf0785773684c728c4
Reviewed-on: https://gerrit.libreoffice.org/41770
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx | 2 | ||||
-rw-r--r-- | odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx index a5c67c6c8ced..e36776469d2a 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx @@ -195,7 +195,7 @@ void SAL_CALL OStatement::addBatch( const ::rtl::OUString& sql ) throw(SQLExcept checkDisposed(OStatement_BASE::rBHelper.bDisposed); - m_aBatchList.push_back(sql); + m_aBatchVector.push_back(sql); } Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException, RuntimeException) diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx index 66393c2d6ce1..c870048d8146 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.hxx @@ -45,7 +45,7 @@ #include <com/sun/star/util/XCancellable.hpp> #include <cppuhelper/compbase5.hxx> #include "SConnection.hxx" -#include <list> +#include <vector> #include "OSubComponent.hxx" #include <com/sun/star/lang/XServiceInfo.hpp> @@ -72,7 +72,7 @@ namespace connectivity ::com::sun::star::uno::WeakReference< ::com::sun::star::sdbc::XResultSet> m_xResultSet; // The last ResultSet created // for this Statement - ::std::list< ::rtl::OUString> m_aBatchList; + ::std::vector< ::rtl::OUString> m_aBatchVector; OConnection* m_pConnection; // The owning Connection object protected: |