Kaydet (Commit) 288cc968 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

new[] already allocates each element of the array

And calls the default constructor, naturally.
üst 50e51187
...@@ -641,11 +641,10 @@ void OPreparedStatement::initBoundParam () throw(SQLException) ...@@ -641,11 +641,10 @@ void OPreparedStatement::initBoundParam () throw(SQLException)
boundParams = new OBoundParam[numParams]; boundParams = new OBoundParam[numParams];
// Allocate and initialize each bound parameter // initialize each bound parameter
for (sal_Int32 i = 0; i < numParams; i++) for (sal_Int32 i = 0; i < numParams; i++)
{ {
boundParams[i] = OBoundParam();
boundParams[i].initialize (); boundParams[i].initialize ();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment