From 912ad8989e6e34968050e61dfd9785d2816b69bc Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 27 Oct 2010 17:52:04 +0200
Subject: [PATCH] debugger: remove a two more cases of the RVO bug

Reviewed-by: dt
Task-number: QTCREATORBUG-2921
---
 tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
index 3c425320c27..f8306b8ed05 100644
--- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
+++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
@@ -377,7 +377,7 @@ func_t testFunctionPointer()
     return f1;
 }
 
-QByteArray testQByteArray()
+void testQByteArray()
 {
     QByteArray ba = "Hello";
     ba += '"';
@@ -393,7 +393,6 @@ QByteArray testQByteArray()
     ba += char(0);
     ba += 1;
     ba += 2;
-    return ba;
 }
 
 static void throwit1()
@@ -1859,11 +1858,10 @@ struct Color
     Color() { r = 1, g = 2, b = 3, a = 4; }
 };
 
-Color testColor()
+void testColor()
 {
     Color c;
     c.r = 5;
-    return c;
 }
 
 int fooii()
-- 
GitLab