summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-14 09:49:19 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-02-14 15:07:04 +0100
commit288cc968c4d1fa07b4f3cc106ea6934c4afd955a (patch)
treecd2d556bf1ea99a9232a50ea0da029050ad5c0a4
parent50e5118710c84461b0e09dc0576e924ea149f6d4 (diff)
new[] already allocates each element of the array
And calls the default constructor, naturally.
-rw-r--r--connectivity/source/drivers/odbcbase/OPreparedStatement.cxx3
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 ();
}
}