aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cpptoolsplugin.h
diff options
context:
space:
mode:
authorErik Verbruggen <[email protected]>2014-02-25 16:16:11 +0100
committerErik Verbruggen <[email protected]>2014-05-28 15:54:38 +0200
commita870c29a71b4de319f83767b55698df627715417 (patch)
treead15b4336e0c2b196e149d06f5ce63743563792e /src/plugins/cpptools/cpptoolsplugin.h
parenta940c73d81bf137c7839c6a641ae4291f39fc5cb (diff)
C++: use a global string table for SearchSymbols.
This string table uniques strings, so that multiple identical strings share their contents. It is used by the locator and the symbol searcher, and will later be used by the class view. Change-Id: Ib8b50f69bbf994d0d7a39b66dc8caf1a3d9bfb42 Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h
index ce55cf668ec..00a8a05567c 100644
--- a/src/plugins/cpptools/cpptoolsplugin.h
+++ b/src/plugins/cpptools/cpptoolsplugin.h
@@ -31,6 +31,7 @@
#define CPPTOOLS_H
#include "cpptools_global.h"
+#include "stringtable.h"
#include <projectexplorer/projectexplorer.h>
@@ -73,6 +74,8 @@ public:
QSharedPointer<CppCodeModelSettings> codeModelSettings() const;
+ static StringTable &stringTable();
+
public slots:
void switchHeaderSource();
void switchHeaderSourceInNextSplit();
@@ -163,6 +166,7 @@ private:
QSharedPointer<CppFileSettings> m_fileSettings;
QSharedPointer<CppCodeModelSettings> m_codeModelSettings;
CppToolsSettings *m_settings;
+ StringTable m_stringTable;
};
} // namespace Internal