summaryrefslogtreecommitdiff
path: root/src/plugins/clangcodemodel/clangassistproposalitem.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@theqtcompany.com>2015-07-15 17:01:50 +0200
committerMarco Bubke <marco.bubke@theqtcompany.com>2015-07-20 14:50:24 +0000
commitc267a34b09352854d210d92d8feb122e6162aed2 (patch)
treed824ed3fa2bf612c1f12059134f47898e768fbce /src/plugins/clangcodemodel/clangassistproposalitem.h
parent8938addc5ca6b74e602fcb2496275cb8554376ee (diff)
downloadqt-creator-c267a34b09352854d210d92d8feb122e6162aed2.tar.gz
Clang: Use the CodeCompletion getter directly
Casting from a Qvariant is expensive and it happens here very often. Change-Id: If524412f314bb8ac9e9e5e4335c7e32ff7a9ce40 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangassistproposalitem.h')
-rw-r--r--src/plugins/clangcodemodel/clangassistproposalitem.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/clangcodemodel/clangassistproposalitem.h b/src/plugins/clangcodemodel/clangassistproposalitem.h
index b636f6d81b..3aedd8c0b7 100644
--- a/src/plugins/clangcodemodel/clangassistproposalitem.h
+++ b/src/plugins/clangcodemodel/clangassistproposalitem.h
@@ -52,13 +52,14 @@ public:
bool isOverloaded() const;
void addOverload(const ClangBackEnd::CodeCompletion &ccr);
- ClangBackEnd::CodeCompletion codeCompletion() const;
+ void setCodeCompletion(const ClangBackEnd::CodeCompletion &codeCompletion);
+ const ClangBackEnd::CodeCompletion &codeCompletion() const;
- bool isCodeCompletion() const;
private:
+ ClangBackEnd::CodeCompletion m_codeCompletion;
+ QList<ClangBackEnd::CodeCompletion> m_overloads;
unsigned m_completionOperator;
mutable QChar m_typedChar;
- QList<ClangBackEnd::CodeCompletion> m_overloads;
};
} // namespace Internal