summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-08-31 20:32:58 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-08-31 21:44:10 +0200
commit70d9ae239bb4f5fbde135a7fe13d0a99c60d5172 (patch)
treea03e908a6b6ef6a9332d460aed4b9373d87142b4 /mysqlc
parent39c6112b5b493eda042078447bf6c67bb7bd8a34 (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 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_statement.cxx2
-rw-r--r--mysqlc/source/mysqlc_statement.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index 94e340cb07c9..20d90e28024b 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -192,7 +192,7 @@ void SAL_CALL OStatement::addBatch(const rtl::OUString& sql)
MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed);
- m_aBatchList.push_back(sql);
+ m_aBatchVector.push_back(sql);
}
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
diff --git a/mysqlc/source/mysqlc_statement.hxx b/mysqlc/source/mysqlc_statement.hxx
index 02533fabe8ea..b7357d27ecb7 100644
--- a/mysqlc/source/mysqlc_statement.hxx
+++ b/mysqlc/source/mysqlc_statement.hxx
@@ -34,7 +34,7 @@
#include <cppconn/statement.h>
#include <cppuhelper/compbase5.hxx>
-#include <list>
+#include <vector>
namespace connectivity
{
@@ -71,7 +71,7 @@ namespace connectivity
SQLWarning m_aLastWarning;
protected:
- ::std::list< rtl::OUString> m_aBatchList;
+ ::std::vector< rtl::OUString> m_aBatchVector;
OConnection* m_pConnection; // The owning Connection object