From 4b34cf6bede5edd2537783e64f61511c7e5df755 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 14 Mar 2021 00:37:49 +0100 Subject: Update the use of TQRegExp so that it does not require an old API. The definition of -UTQT_NO_COMPAT is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- kdbg/gdbdriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kdbg/gdbdriver.cpp') 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 -- cgit v1.2.3