test: bug fixes

Fixed several platform specific bugs.
This commit is contained in:
Manuel Dobusch
2014-10-06 14:16:57 +02:00
parent fe919c4776
commit d720414467
4 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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();