From 87fc54facabc7dcba355f95ffc4def5a50cad424 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 14 Jul 2010 08:25:26 +0200
Subject: [PATCH] debugger: code cosmetics

---
 share/qtcreator/gdbmacros/dumper.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py
index 4fd08359604..5691cfd216f 100644
--- a/share/qtcreator/gdbmacros/dumper.py
+++ b/share/qtcreator/gdbmacros/dumper.py
@@ -632,11 +632,11 @@ movableTypes = set([
 def stripClassTag(type):
     if type.startswith("class "):
         return type[6:]
-    elif type.startswith("struct "):
+    if type.startswith("struct "):
         return type[7:]
-    elif type.startswith("const "):
+    if type.startswith("const "):
         return type[6:]
-    elif type.startswith("volatile "):
+    if type.startswith("volatile "):
         return type[9:]
     return type
 
@@ -685,6 +685,7 @@ def makeExpression(value):
 def qtNamespace():
     try:
         str = catchCliOutput("ptype QString::Null")[0]
+        # The result looks like:
         # "type = const struct myns::QString::Null {"
         # "    <no data fields>"
         # "}"
-- 
GitLab