We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac462d9 commit 022cc81Copy full SHA for 022cc81
Cable/Parsers/cableXMLSourceParser.cxx
@@ -879,6 +879,10 @@ Type* XMLSourceParser::GetTypeFromId(const char* tid)
879
if(cv.find('c') != String::npos) { isConst = true; }
880
if(cv.find('v') != String::npos) { isVolatile = true; }
881
882
+ // If the desired result type is not const- or volatile-qualified,
883
+ // we are done (we do not care about restrict-qualification).
884
+ if(!(isConst || isVolatile)) { return type; }
885
+
886
// Add the type with these cv qualifiers.
887
Type::Pointer newType;
888
switch (type->GetTypeId())
0 commit comments