Cdb: Strip const before template parameter lookup

Change-Id: I21226e867944c3277fcb3fec40a04436d055d9e2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-10-10 14:35:30 +02:00
parent f45c59eb8a
commit edd239a3de

View File

@@ -241,7 +241,7 @@ PyObject *type_TemplateArgument(Type *self, PyObject *args)
if (innerTypes.size() <= index) if (innerTypes.size() <= index)
Py_RETURN_NONE; Py_RETURN_NONE;
const std::string &innerType = innerTypes.at(index); const std::string &innerType = SymbolGroupValue::stripConst(innerTypes.at(index));
if (numeric) { if (numeric) {
try { try {
return Py_BuildValue("i", std::stoi(innerType)); return Py_BuildValue("i", std::stoi(innerType));