Locator: Cleanup and modernize Locator and filters

* Omit QLatin1{Char|String}
* Use member initialization
* Use range-based-for
  (and fixed the cases with non-const Qt container)
* Sort includes to common style

Change-Id: Ibc33a732bb153862efd6d5febfac758229cb61d4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Andre Hartmann
2017-12-29 09:11:27 +01:00
committed by André Hartmann
parent ccc0bebcf4
commit b2aa1b9845
42 changed files with 238 additions and 219 deletions

View File

@@ -25,21 +25,22 @@
#pragma once
#include <functional>
#include <QHash>
#include <cplusplus/CppDocument.h>
#include "cpptools_global.h"
#include "cppmodelmanager.h"
#include "searchsymbols.h"
#include "stringtable.h"
#include <cplusplus/CppDocument.h>
#include <QHash>
#include <functional>
namespace CppTools {
namespace Internal {
class CppToolsPlugin;
} // Internal namespace
} // namespace Internal
class CppLocatorData : public QObject
{
@@ -73,7 +74,7 @@ private:
{ return m_strings->insert(path); }
private:
Internal::StringTable *m_strings; // Used to avoid QString duplication
Internal::StringTable *m_strings = nullptr; // Used to avoid QString duplication
mutable SearchSymbols m_search;
mutable QHash<QString, IndexItem::Ptr> m_infosByFile;
@@ -82,4 +83,4 @@ private:
mutable QVector<CPlusPlus::Document::Ptr> m_pendingDocuments;
};
} // CppTools namespace
} // namespace CppTools