From 022cc81ebc2b09ba475d011475aa00111417e1cf Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 29 Oct 2007 10:29:06 -0400 Subject: [PATCH] BUG: Allow restrict qualifier on reference types (but not const or volatile). --- Cable/Parsers/cableXMLSourceParser.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cable/Parsers/cableXMLSourceParser.cxx b/Cable/Parsers/cableXMLSourceParser.cxx index 5c98388..2360faf 100644 --- a/Cable/Parsers/cableXMLSourceParser.cxx +++ b/Cable/Parsers/cableXMLSourceParser.cxx @@ -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())