Improve efficiency using QStringLiteral macros.
--HG-- branch : develop
This commit is contained in:
parent
9103c8ef15
commit
0127f745c6
|
@ -167,7 +167,7 @@ inline void VDomDocument::SetAttribute<QString>(QDomElement &domElement, const Q
|
|||
template <>
|
||||
inline void VDomDocument::SetAttribute<bool>(QDomElement &domElement, const QString &name, const bool &value) const
|
||||
{
|
||||
domElement.setAttribute(name, value ? QStringLiteral("true") : QStringLiteral("false"));
|
||||
domElement.setAttribute(name, value ? trueStr : falseStr);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user