summaryrefslogtreecommitdiffstats
path: root/src/declinfo.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/declinfo.l')
-rw-r--r--src/declinfo.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declinfo.l b/src/declinfo.l
index c071192..51e10cb 100644
--- a/src/declinfo.l
+++ b/src/declinfo.l
@@ -55,7 +55,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);
@@ -67,7 +67,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);
}