[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevelop/5.0] debuggers/gdb: Minor: Fix accidental detach
From:       Kevin Funk <kfunk () kde ! org>
Date:       2016-01-15 0:57:53
Message-ID: E1aJsi9-0006I2-CR () scm ! kde ! org
[Download RAW message or body]

Git commit 226ac7a68fc43368039abe5430775768d972d913 by Kevin Funk.
Committed on 15/01/2016 at 00:57.
Pushed by kfunk into branch '5.0'.

Minor: Fix accidental detach

M  +2    -2    debuggers/gdb/gdboutputwidget.cpp

http://commits.kde.org/kdevelop/226ac7a68fc43368039abe5430775768d972d913

diff --git a/debuggers/gdb/gdboutputwidget.cpp b/debuggers/gdb/gdboutputwidget.cpp
index e7a7039..7972dc6 100644
--- a/debuggers/gdb/gdboutputwidget.cpp
+++ b/debuggers/gdb/gdboutputwidget.cpp
@@ -412,11 +412,11 @@ void GDBOutputWidget::copyAll()
 {
     /* See comments for allCommandRaw_ for explanations of
        this complex logic, as opposed to calling text(). */
-    QStringList& raw = showInternalCommands_ ?
+    const QStringList& raw = showInternalCommands_ ?
         allCommandsRaw_ : userCommandsRaw_;
     QString text;
     for (int i = 0; i < raw.size(); ++i)
-        text += raw[i];
+        text += raw.at(i);
 
     // Make sure the text is pastable both with Ctrl-C and with
     // middle click.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic