summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-08-01 09:17:36 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-08-01 09:17:36 (GMT)
commitf16a63d6d5d9fd11a2f1c57bdfad7f1d4b175f0e (patch)
tree7cf257e68a43c63c79d16589f8f38abc2dbc069f /src/code.l
parent6159868d03868ce4545575fb1d28ae35fb833d6a (diff)
downloadDoxygen-f16a63d6d5d9fd11a2f1c57bdfad7f1d4b175f0e.zip
Doxygen-f16a63d6d5d9fd11a2f1c57bdfad7f1d4b175f0e.tar.gz
Doxygen-f16a63d6d5d9fd11a2f1c57bdfad7f1d4b175f0e.tar.bz2
issue 7068: "QGDict::hashAsciiKey: Invalid null key" error messages (part 3)
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code.l b/src/code.l
index ad9447b..56bf75c 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1513,7 +1513,7 @@ static void writeObjCMethodCall(ObjCCallCtx *ctx)
{
ctx->objectType = stripClassName(ctx->objectVar->typeString());
//printf(" ctx->objectType=%p\n",ctx->objectType);
- if (ctx->objectType)
+ if (ctx->objectType && !ctx->methodName.isEmpty())
{
ctx->method = ctx->objectType->getMemberByName(ctx->methodName);
//printf(" ctx->method=%p\n",ctx->method);
@@ -1525,7 +1525,7 @@ static void writeObjCMethodCall(ObjCCallCtx *ctx)
else // local variable
{
//printf(" object is local variable\n");
- if (cd!=VariableContext::dummyContext)
+ if (cd!=VariableContext::dummyContext && !ctx->methodName.isEmpty())
{
ctx->method = cd->getMemberByName(ctx->methodName);
//printf(" class=%p method=%p\n",cd,ctx->method);
@@ -1594,7 +1594,7 @@ static void writeObjCMethodCall(ObjCCallCtx *ctx)
{
ctx->objectType = ctx->objectType->categoryOf();
}
- if (ctx->objectType)
+ if (ctx->objectType && !ctx->methodName.isEmpty())
{
ctx->method = ctx->objectType->getMemberByName(ctx->methodName);
}
@@ -1623,7 +1623,7 @@ static void writeObjCMethodCall(ObjCCallCtx *ctx)
if (bclass->classDef->compoundType()!=ClassDef::Protocol)
{
ctx->objectType = bclass->classDef;
- if (ctx->objectType)
+ if (ctx->objectType && !ctx->methodName.isEmpty())
{
ctx->method = ctx->objectType->getMemberByName(ctx->methodName);
}
@@ -1701,7 +1701,7 @@ static void writeObjCMethodCall(ObjCCallCtx *ctx)
else
{
ctx->objectType = stripClassName(ictx->method->typeString());
- if (ctx->objectType)
+ if (ctx->objectType && !ctx->methodName.isEmpty())
{
ctx->method = ctx->objectType->getMemberByName(ctx->methodName);
}