Skip to content

Commit

Permalink
Resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenplieger committed Feb 14, 2025
1 parent 24fc284 commit b17ac36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion adagucserverEC/CUniqueRequests/CURUniqueRequests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void CURUniqueRequests::createStructure(std::vector<CURResult> results, CDataSou
dataStructure = layerStructure->getLast();
}

std::sort(results.begin(), results.end(), less_than_key());
std::sort(results.begin(), results.end(), compareFunctionCurResult());
CDBDebug("Found %d elements", results.size());

for (size_t j = 0; j < results.size(); j++) {
Expand Down
4 changes: 0 additions & 4 deletions adagucserverEC/CUniqueRequests/requestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#include "CUniqueRequests/requestUtils.h"
#include "CUniqueRequests/CURUniqueRequests.h"

void padTo(std::string &str, const size_t num, const char paddingChar) {
if (num > str.size()) str.insert(0, num - str.size(), paddingChar);
}

bool sortDimensionKeysRecursive(CURResult &result1, CURResult &result2, int depth) {
bool d = false;
if (depth < result1.numDims) {
Expand Down
4 changes: 1 addition & 3 deletions adagucserverEC/CUniqueRequests/requestUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
#define REQUESTUTILS_H
#include "CUniqueRequests/CURTypes.h"

void padTo(std::string &str, const size_t num, const char paddingChar = ' ');

bool sortDimensionKeysRecursive(CURResult &result1, CURResult &result2, int depth = 0);

struct less_than_key {
struct compareFunctionCurResult {
inline bool operator()(CURResult &result1, CURResult &result2) { return sortDimensionKeysRecursive(result1, result2, 0); }
};

Expand Down

0 comments on commit b17ac36

Please sign in to comment.