Improve efficiency using QStringLiteral macros.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-10-04 16:44:11 +03:00
parent 9103c8ef15
commit 0127f745c6

View File

@ -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);
}
//---------------------------------------------------------------------------------------------------------------------