src: Fixed clang warnings

This commit is contained in:
Eberhard Graether
2017-12-11 00:30:47 +01:00
parent 088ddd77a8
commit 604c3c85eb
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -686,9 +686,9 @@ std::vector<SearchMatch> PersistentStorage::getAutocompletionSymbolMatches(
std::vector<SearchMatch> PersistentStorage::getAutocompletionFileMatches(const std::string& query, size_t maxResultsCount) const
{
std::vector<SearchResult> results = m_fileIndex.search(
query,
NodeTypeSet::all().getWithMatchingKept([](const NodeType& type) { return type.isFile(); }),
maxResultsCount,
query,
NodeTypeSet::all().getWithMatchingKept([](const NodeType& type) { return type.isFile(); }),
maxResultsCount,
100
);
@@ -750,7 +750,8 @@ std::vector<SearchMatch> PersistentStorage::getAutocompletionCommandMatches(
match.typeName = "filter";
}
if (acceptedNodeTypes == NodeTypeSet::all() || match.getCommandType() == SearchMatch::COMMAND_NODE_FILTER && (acceptedNodeTypes.contains(match.nodeType)))
if (acceptedNodeTypes == NodeTypeSet::all() ||
(match.getCommandType() == SearchMatch::COMMAND_NODE_FILTER && (acceptedNodeTypes.contains(match.nodeType))))
{
matches.push_back(match);
}