diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 21:02:26 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 21:02:26 +0100 |
commit | 620b2f021e10384453799e81cd0253b1b7ef0ae1 (patch) | |
tree | c67992f36a73a353f1eaaaeac8d0b3b4b1f3ccea | |
parent | Mark BufferOf constructor explicit (diff) | |
download | mygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.tar.bz2 mygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.tar.xz mygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.zip |
Reserve space in the right vector
-rw-r--r-- | test/test-e2e.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-e2e.cpp b/test/test-e2e.cpp index 67436ab..e16627a 100644 --- a/test/test-e2e.cpp +++ b/test/test-e2e.cpp @@ -322,7 +322,7 @@ replication_data_type_impl(Test * test) // read test records auto rs {MyGrate::DbStmt<"SELECT val FROM testout.test ORDER BY id">::execute(&test->pqm)}; std::vector<O> outs; - vals.reserve(ROWS); + outs.reserve(ROWS); for (auto v : *rs) { outs.push_back(v[0]); } |