Commit 2e615535 authored by David Schulz's avatar David Schulz

CdbExt: Fix string to int for VS 2008.

Task-number: QTCREATORBUG-11057
Change-Id: I7da9f8fb08c1fd6820368f18c8750db4ec8fee2a
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent f82b12e3
......@@ -208,8 +208,11 @@ int containerSize(KnownType kt, const SymbolGroupValue &v)
if (arraySizeStart != std::string::npos) {
++arraySizeStart;
std::string::size_type arraySizeEnd = v.type().find('>', arraySizeStart);
if (arraySizeEnd != std::string::npos)
return std::stoi(v.type().substr(arraySizeStart, arraySizeEnd - arraySizeStart));
if (arraySizeEnd != std::string::npos) {
int rc = 0;
if (integerFromString(v.type().substr(arraySizeStart, arraySizeEnd - arraySizeStart), &rc))
return rc;
}
}
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment