From fb9e0397e64e199f69379098739e717a131fb05f Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 23 Feb 2023 17:43:38 +0100 Subject: [PATCH] Debugger: Use a QStringView for debugview into output buffer This is unused unless debugging creator itself. Change-Id: Ic30fe4970c4b0ec79e977ef932d0516ab1ba0792 Reviewed-by: David Schulz --- src/plugins/debugger/debuggerprotocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerprotocol.h b/src/plugins/debugger/debuggerprotocol.h index 46d0b38f8bc..57becd08e7b 100644 --- a/src/plugins/debugger/debuggerprotocol.h +++ b/src/plugins/debugger/debuggerprotocol.h @@ -118,7 +118,7 @@ public: QString readCString(); QString readString(const std::function &isValidChar); - QString buffer() const { return QString(from, to - from); } + QStringView buffer() const { return QStringView(from, to - from); } int remainingChars() const { return int(to - from); } void skipCommas();