Skip to content

Commit

Permalink
Merge pull request #39 from niklas88/driveby_cleanups
Browse files Browse the repository at this point in the history
Simplify ResultTable getDataAsVarSize()
  • Loading branch information
niklas88 committed Mar 3, 2018
2 parents 9218e17 + 4f14fcd commit c84b97f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engine/ResultTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ class ResultTable {
string asDebugString() const;

const vector<vector<Id>> getDataAsVarSize() const {
vector<vector<Id>> res;
if (_varSizeData.size() > 0) {
res = _varSizeData;
return _varSizeData;
}

vector<vector<Id>> res;
if (_nofColumns == 1) {
const auto& data = *static_cast<vector<array<Id, 1>> *>(_fixedSizeData);
for (size_t i = 0; i < data.size(); ++i) {
Expand Down

0 comments on commit c84b97f

Please sign in to comment.