summaryrefslogtreecommitdiffstats
path: root/kdbg/gdbdriver.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-03-14 00:37:49 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-03-14 00:37:49 +0100
commit4b34cf6bede5edd2537783e64f61511c7e5df755 (patch)
tree706c36aaa2a1aa4687d1478119c882a470089308 /kdbg/gdbdriver.cpp
parent49c43d74d820cae7ce5a7291702bbc5ae1b3bf9e (diff)
downloadkdbg-4b34cf6bede5edd2537783e64f61511c7e5df755.tar.gz
kdbg-4b34cf6bede5edd2537783e64f61511c7e5df755.zip
Update the use of TQRegExp so that it does not require an old API.
The definition of -UTQT_NO_COMPAT is no longer needed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kdbg/gdbdriver.cpp')
-rw-r--r--kdbg/gdbdriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp
index 933c191..068a4d9 100644
--- a/kdbg/gdbdriver.cpp
+++ b/kdbg/gdbdriver.cpp
@@ -358,9 +358,9 @@ void GdbDriver::parseMarker()
// extract filename and line number
static TQRegExp MarkerRE(":[0-9]+:[0-9]+:[begmidl]+:0x");
- int len;
- int lineNoStart = MarkerRE.match(startMarker, 0, &len);
+ int lineNoStart = MarkerRE.search(startMarker, 0);
if (lineNoStart >= 0) {
+ int len = MarkerRE.matchedLength();
int lineNo = atoi(startMarker + lineNoStart+1);
// get address