Commit 04946b00 authored by Milian Wolff's avatar Milian Wolff

QMap -> QHash

Order isn't important for these maps, use the faster hash instead.
parent 47dfb628
......@@ -135,8 +135,8 @@ public:
mutable QHash<KDevelop::DUContext*, KDevelop::Declaration*> m_contextClasses;
//Here the colors of function context are stored until they are merged into the function body
mutable QMap<KDevelop::IndexedDUContext, QHash<KDevelop::Declaration*, uint>> m_functionColorsForDeclarations;
mutable QMap<KDevelop::IndexedDUContext, ColorMap> m_functionDeclarationsForColors;
mutable QHash<KDevelop::IndexedDUContext, QHash<KDevelop::Declaration*, uint>> m_functionColorsForDeclarations;
mutable QHash<KDevelop::IndexedDUContext, ColorMap> m_functionDeclarationsForColors;
mutable bool m_useClassCache;
const CodeHighlighting* m_highlighting;
......@@ -193,7 +193,7 @@ private:
QVector<KTextEditor::MovingRange*> m_highlightedRanges;
QMap<DocumentChangeTracker*, DocumentHighlighting*> m_highlights;
QHash<DocumentChangeTracker*, DocumentHighlighting*> m_highlights;
friend class CodeHighlightingInstance;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment