summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cpphoverhandler.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-10 17:37:18 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-10 17:41:04 +0100
commita33ae02927f8266da669830b67bf84854241d61c (patch)
tree289c7caf99c14aa4d7387bef2d93f048a938e319 /src/plugins/cppeditor/cpphoverhandler.cpp
parent146a534932b66af491f6cce014095a480d1790b3 (diff)
downloadqt-creator-a33ae02927f8266da669830b67bf84854241d61c.tar.gz
Revert now unnecessary checks for null-types
This reverts commits: c721304a4731a91a9e143a54d2ab3ef89526e05e 885d908ea336de72e7fce2141c1060e425f2af0a a0909989f7d71ee754cdb61202a519cabff25f7c fb4ad59ddbf727f13f29df6bcff80a88e1e1a319 0a9a67cf547701a278f19dbe2b9fb0a70a36cdb8 0d1624d4d1d5ce4e350476fbc86a361fad2ef6b8 d018cfd5cb4aad0101c321fe2fcf9b21598e9590 0504fdd00bce8d9580a52335093b57215f4272da a2fd10fe193dbf8369e43d7df9a59503c8853b2b Conflicts: src/plugins/cpptools/cppcodecompletion.cpp Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r--src/plugins/cppeditor/cpphoverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index 2547b8564d..3959d953f9 100644
--- a/src/plugins/cppeditor/cpphoverhandler.cpp
+++ b/src/plugins/cppeditor/cpphoverhandler.cpp
@@ -256,7 +256,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
const QList<TypeOfExpression::Result> types =
typeOfExpression(expression, doc, lastSymbol);
- if (!types.isEmpty() && types.first().first) {
+ if (!types.isEmpty()) {
FullySpecifiedType firstType = types.first().first;
Symbol *symbol = types.first().second;
FullySpecifiedType docType = firstType;