Debugger: Add a convenience function GdbMi::toInt()

Saves some line noise on the user side.

Change-Id: I9c6d7542195fc7485ac4ee466cd42a28be95b8da
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2013-05-07 12:09:54 +02:00
committed by David Schulz
parent 4f063d5bca
commit fa2ac44271
9 changed files with 38 additions and 37 deletions

View File

@@ -423,7 +423,7 @@ void WinException::fromGdbMI(const GdbMi &gdbmi)
}
const GdbMi gLineNumber = gdbmi["exceptionLine"];
if (gLineNumber.isValid()) {
lineNumber = gLineNumber.data().toInt();
lineNumber = gLineNumber.toInt();
file = gdbmi["exceptionFile"].data();
}
function = gdbmi["exceptionFunction"].data();