test: bug fixes
Fixed several platform specific bugs.
This commit is contained in:
@@ -11,7 +11,7 @@ public:
|
||||
GraphFilter();
|
||||
virtual ~GraphFilter();
|
||||
|
||||
void apply(const FilterableGraph* in, FilterableGraph* out);
|
||||
virtual void apply(const FilterableGraph* in, FilterableGraph* out);
|
||||
|
||||
protected:
|
||||
virtual void visitNode(Node* node);
|
||||
|
||||
@@ -267,7 +267,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void apply(const FilterableGraph* in, FilterableGraph* out)
|
||||
virtual void apply(const FilterableGraph* in, FilterableGraph* out)
|
||||
{
|
||||
if (m_tokenIds.size())
|
||||
{
|
||||
@@ -296,8 +296,8 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
const std::string& m_tokenName;
|
||||
const std::set<Id>& m_tokenIds;
|
||||
const std::string m_tokenName;
|
||||
const std::set<Id> m_tokenIds;
|
||||
};
|
||||
|
||||
#endif // GRAPH_FILTER_IMPLEMENTATIONS_H
|
||||
|
||||
@@ -162,7 +162,7 @@ std::shared_ptr<QueryNode> QueryTree::buildGroup(std::deque<std::string>& tokens
|
||||
char delimiter = QueryOperator::getOperator(closeType);
|
||||
bool valid = true;
|
||||
|
||||
while (tokens.front() != std::string(1, delimiter) && tokens.size())
|
||||
while (tokens.size() > 0 && tokens.front() != std::string(1, delimiter))
|
||||
{
|
||||
group.push_back(tokens.front());
|
||||
name += tokens.front();
|
||||
|
||||
Reference in New Issue
Block a user