Skip to content

Commit

Permalink
Fix MSCV compiler warning
Browse files Browse the repository at this point in the history
reg.: not all control paths return a value (C4715)
  • Loading branch information
Jojo-Schmitz committed Aug 19, 2024
1 parent 84fddb7 commit f0a584a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/framework/extensions/devtools/apidumpmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,17 @@ static QString makeCleanType(const QString& type)

static QString sigToString(const IApiRegister::Dump::Sig& sig, IApiRegister::Dump::MethodType type, const QString& prefix = QString())
{
QString str;
switch (type) {
case IApiRegister::Dump::MethodType::Property: {
QString str;
if (!prefix.isEmpty()) {
str += prefix + ".";
}
str += sig.name;
str += "";
str += makeCleanType(sig.retType);

return str;
} break;
case IApiRegister::Dump::MethodType::Method: {
QString str;
if (!prefix.isEmpty()) {
str += prefix + ".";
}
Expand All @@ -175,10 +172,9 @@ static QString sigToString(const IApiRegister::Dump::Sig& sig, IApiRegister::Dum
str += "";
str += makeCleanType(sig.retType);
}

return str;
} break;
}
return str;
}

void ApiDumpModel::load()
Expand Down

0 comments on commit f0a584a

Please sign in to comment.