diff --git a/src/lib/data/access/StorageAccessProxy.h b/src/lib/data/access/StorageAccessProxy.h index 51451e46..d5ba09b2 100644 --- a/src/lib/data/access/StorageAccessProxy.h +++ b/src/lib/data/access/StorageAccessProxy.h @@ -93,7 +93,7 @@ protected: virtual void setErrorFilter(const ErrorFilter& filter) override; private: - void handleMessage(MessageErrorFilterChanged* message); + void handleMessage(MessageErrorFilterChanged* message) override; StorageAccess* m_subject; }; diff --git a/src/lib/data/storage/PersistentStorage.cpp b/src/lib/data/storage/PersistentStorage.cpp index c2c2d76b..2d8ceccf 100644 --- a/src/lib/data/storage/PersistentStorage.cpp +++ b/src/lib/data/storage/PersistentStorage.cpp @@ -686,9 +686,9 @@ std::vector PersistentStorage::getAutocompletionSymbolMatches( std::vector PersistentStorage::getAutocompletionFileMatches(const std::string& query, size_t maxResultsCount) const { std::vector 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 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); }