Skip to content

Commit

Permalink
Fix coverity reports: allow moving these (const prevents move)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaure-kdab committed Jan 17, 2025
1 parent 4c81d19 commit 9d3a333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kdwsdl2cpp/src/converter_complextype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ QString Converter::generateMemberVariable(const QString &rawName, const QString

KODE::MemberVariable nilVariable(rawName + "_nil", "bool");

const QString variableName = QLatin1String("d_ptr->") + variable.name();
QString variableName = QLatin1String("d_ptr->") + variable.name();
const QString nilVariableName = QLatin1String("d_ptr->") + nilVariable.name();
const QString upperName = upperlize(rawName);
const QString lowerName = lowerlize(rawName);
Expand Down
4 changes: 2 additions & 2 deletions kdwsdl2cpp/src/typemap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ void TypeMap::addSchemaTypes(const XSD::Types &types, const QString &ns)
Q_ASSERT(0);
continue;
}
const QString resolvedType = (*it).localType;
QString resolvedType = (*it).localType;
Q_ASSERT(!resolvedType.isEmpty());
entry.localType = resolvedType;
entry.localType = std::move(resolvedType);
entry.basicType = (*it).basicType;
entry.builtinType = (*it).builtinType;
entry.complexType = (*it).complexType;
Expand Down

0 comments on commit 9d3a333

Please sign in to comment.