Skip to content

Commit

Permalink
BUG: Allow restrict qualifier on reference types (but not const or vo…
Browse files Browse the repository at this point in the history
…latile).
  • Loading branch information
bradking committed Oct 29, 2007
1 parent ac462d9 commit 022cc81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cable/Parsers/cableXMLSourceParser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,10 @@ Type* XMLSourceParser::GetTypeFromId(const char* tid)
if(cv.find('c') != String::npos) { isConst = true; }
if(cv.find('v') != String::npos) { isVolatile = true; }

// If the desired result type is not const- or volatile-qualified,
// we are done (we do not care about restrict-qualification).
if(!(isConst || isVolatile)) { return type; }

// Add the type with these cv qualifiers.
Type::Pointer newType;
switch (type->GetTypeId())
Expand Down

0 comments on commit 022cc81

Please sign in to comment.