summaryrefslogtreecommitdiffstats
path: root/src/declinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declinfo.cpp')
-rw-r--r--src/declinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declinfo.cpp b/src/declinfo.cpp
index 4a0a604..cc19eb2 100644
--- a/src/declinfo.cpp
+++ b/src/declinfo.cpp
@@ -503,7 +503,7 @@ static void addType()
//printf("addType() type=`%s' scope=`%s' name=`%s'\n",
// type.data(),scope.data(),name.data());
if (name.isEmpty() && scope.isEmpty()) return;
- if (!type.isNull()) type+=' ';
+ if (!type.isEmpty()) type+=' ';
if (!scope.isEmpty()) type+=scope+"::";
type+=name;
scope.resize(0);
@@ -515,7 +515,7 @@ static void addTypeName()
//printf("addTypeName() type=`%s' scope=`%s' name=`%s'\n",
// type.data(),scope.data(),name.data());
if (name.isEmpty()) return;
- if (!type.isNull()) type+=' ';
+ if (!type.isEmpty()) type+=' ';
type+=name;
name.resize(0);
}