diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-14 09:49:19 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-14 15:07:04 +0100 |
commit | 288cc968c4d1fa07b4f3cc106ea6934c4afd955a (patch) | |
tree | cd2d556bf1ea99a9232a50ea0da029050ad5c0a4 /connectivity | |
parent | odbc getTableTypes: ask the driver instead of guessing (diff) | |
download | core-288cc968c4d1fa07b4f3cc106ea6934c4afd955a.tar.gz core-288cc968c4d1fa07b4f3cc106ea6934c4afd955a.zip |
new[] already allocates each element of the array
And calls the default constructor, naturally.
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OPreparedStatement.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx index 2dbde520ad7b..63401f57bc84 100644 --- a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx @@ -641,11 +641,10 @@ void OPreparedStatement::initBoundParam () throw(SQLException) boundParams = new OBoundParam[numParams]; - // Allocate and initialize each bound parameter + // initialize each bound parameter for (sal_Int32 i = 0; i < numParams; i++) { - boundParams[i] = OBoundParam(); boundParams[i].initialize (); } } |