summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletionassist.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-03-29 13:53:55 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2016-03-31 08:01:58 +0000
commit4b3a987c39cb92f01033255b0da51d534eb9d2cd (patch)
treebed418b94e3631a2ede76355f9dae6c055621d76 /src/plugins/cpptools/cppcompletionassist.h
parentda5309cbc62db905ed8f5c58401f814baf26d269 (diff)
downloadqt-creator-4b3a987c39cb92f01033255b0da51d534eb9d2cd.tar.gz
C++: Equalize startOfOperator()
There are two versions of startOfOperator: * InternalCppCompletionAssistProcessor::startOfOperator * ClangCompletionAssistProcessor::startOfOperator The latter started as a copy of the former, but the former got some bug fixes in the meantime. Adjust both versions to each other, so it's easy to diff them and to extract the duplication in a follow-up change. Change-Id: Icf48386bf1ad0fa473bec476c5412be9b1890139 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletionassist.h')
-rw-r--r--src/plugins/cpptools/cppcompletionassist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcompletionassist.h b/src/plugins/cpptools/cppcompletionassist.h
index 738840cd15..7872759081 100644
--- a/src/plugins/cpptools/cppcompletionassist.h
+++ b/src/plugins/cpptools/cppcompletionassist.h
@@ -106,7 +106,7 @@ private:
TextEditor::IAssistProposal *createHintProposal(QList<CPlusPlus::Function *> symbols) const;
bool accepts() const;
- int startOfOperator(int pos, unsigned *kind, bool wantFunctionCall) const;
+ int startOfOperator(int positionInDocument, unsigned *kind, bool wantFunctionCall) const;
int findStartOfName(int pos = -1) const;
int startCompletionHelper();
bool tryObjCCompletion();