From 981c1fe15f68106b88d89b5e31c8a932b95bb635 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 27 Feb 2020 11:36:54 +0100 Subject: QDebug::toString(): use nospace() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The intended use cases for toString() are the situations where you can't use operator<<, such as QVERIFY2, Q_ASSERT_X, etc., which means that it will often be used as an argument to e.g. QString::arg(), where the user has control over the structure of the message. For that reason, adding an extra space to the end is not necessary and just gets in the way. This amends 658b9697f9d85d4ed294810b4f60bafdbdd8e247. Change-Id: I0695e6809026a0f92ed783899da80de4fa2a1684 Reviewed-by: MÃ¥rten Nordheim --- src/corelib/doc/src/includes/qdebug-toString.qdocinc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/doc') diff --git a/src/corelib/doc/src/includes/qdebug-toString.qdocinc b/src/corelib/doc/src/includes/qdebug-toString.qdocinc index 4602a10511..db1e1ab453 100644 --- a/src/corelib/doc/src/includes/qdebug-toString.qdocinc +++ b/src/corelib/doc/src/includes/qdebug-toString.qdocinc @@ -5,3 +5,5 @@ This function is useful for cases where you need the textual representation of an object for debugging, but cannot use \c {operator<<}. For example: \snippet code/src_corelib_io_qdebug.cpp toString + +The string is streamed using \l nospace(). -- cgit v1.2.3