diff options
| author | Roberto Raggi <[email protected]> | 2010-03-09 14:28:23 +0100 |
|---|---|---|
| committer | Roberto Raggi <[email protected]> | 2010-03-10 09:32:27 +0100 |
| commit | 1c8930737c839a9ada047b5848fab7a6c40a025f (patch) | |
| tree | a8a39b09994acb667ccffbf02b770f2ee5dad311 /src/libs/cplusplus/Icons.cpp | |
| parent | c5df0a1d0dadd792b939c8defaf67ad9ef6cb131 (diff) | |
Fixed possible crash when asking for the icon of a top-level symbol (e.g. the global namespace).
Diffstat (limited to 'src/libs/cplusplus/Icons.cpp')
| -rw-r--r-- | src/libs/cplusplus/Icons.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/Icons.cpp b/src/libs/cplusplus/Icons.cpp index 69b59b937a9..2efa8b33375 100644 --- a/src/libs/cplusplus/Icons.cpp +++ b/src/libs/cplusplus/Icons.cpp @@ -84,7 +84,7 @@ QIcon Icons::iconForSymbol(const Symbol *symbol) const } else if (symbol->isPrivate()) { return _funcPrivateIcon; } - } else if (symbol->scope()->isEnumScope()) { + } else if (symbol->scope() && symbol->scope()->isEnumScope()) { return _enumeratorIcon; } else if (symbol->isDeclaration() || symbol->isArgument()) { if (symbol->isPublic()) { |
