From 604c3c85eba93e4a14dd81ba009f32589dd8c276 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Mon, 11 Dec 2017 00:30:47 +0100 Subject: [PATCH] src: Fixed clang warnings --- src/lib/data/access/StorageAccessProxy.h | 2 +- src/lib/data/storage/PersistentStorage.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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); }