forked from qt-creator/qt-creator
CPlusPlus: Fix some crash
Change-Id: I8b98d86e7d5321e2420d388abba159474d7ad799 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
3
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
3
src/libs/3rdparty/cplusplus/Symbols.cpp
vendored
@@ -150,6 +150,9 @@ Declaration::Declaration(Clone *clone, Subst *subst, Declaration *original)
|
|||||||
if (!firstTemplParamName)
|
if (!firstTemplParamName)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!subst)
|
||||||
|
return;
|
||||||
|
|
||||||
FullySpecifiedType newType;
|
FullySpecifiedType newType;
|
||||||
if (std::strcmp(enNamespaceNameId, "std") == 0 ||
|
if (std::strcmp(enNamespaceNameId, "std") == 0 ||
|
||||||
std::strcmp(enNamespaceNameId, "__cxx11") == 0) {
|
std::strcmp(enNamespaceNameId, "__cxx11") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user