summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cpphoverhandler.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-12-01 11:33:13 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-12-01 11:46:36 +0100
commitfade61a8a9397f44d31c5ab4ede57e5259de8880 (patch)
tree539129b8b2594cad57752f3883b4c766f1299ef6 /src/plugins/cppeditor/cpphoverhandler.cpp
parentb792b934e48c741b804f19378b6028f32c1c04eb (diff)
downloadqt-creator-fade61a8a9397f44d31c5ab4ede57e5259de8880.tar.gz
Use const literals.
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r--src/plugins/cppeditor/cpphoverhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index 46315187a0..5bcaba448d 100644
--- a/src/plugins/cppeditor/cpphoverhandler.cpp
+++ b/src/plugins/cppeditor/cpphoverhandler.cpp
@@ -162,7 +162,7 @@ static QString buildHelpId(Symbol *symbol, Name *name)
if (owner && owner->name() && ! scope->isEnumScope()) {
Name *name = owner->name();
- Identifier *id = 0;
+ const Identifier *id = 0;
if (NameId *nameId = name->asNameId())
id = nameId->identifier();
@@ -341,7 +341,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
if (resolvedSymbol && resolvedSymbol->scope()
&& resolvedSymbol->scope()->isClassScope()) {
Class *enclosingClass = resolvedSymbol->scope()->owner()->asClass();
- if (Identifier *id = enclosingClass->identifier()) {
+ if (const Identifier *id = enclosingClass->identifier()) {
if (id->isEqualTo(resolvedSymbol->identifier()))
resolvedSymbol = enclosingClass;
}