Commit 1cec49c9 authored by yiwenshao's avatar yiwenshao

use move

parent 2d415307
......@@ -112,7 +112,7 @@ Connect::execute(const std::string &query){
curLength.push_back(fieldLen[i]);
}
}
rows.push_back(curRow);
rows.push_back(std::move(curRow));
lengths.push_back(curLength);
}
......@@ -171,7 +171,7 @@ DBResult::printFields(){
vector<vector<string>>
DBResult::getRows(){
return rows;
return std::move(rows);
}
......
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