mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-10-01 04:41:40 +02:00
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 <>
|
template <>
|
||||||
inline void VDomDocument::SetAttribute<bool>(QDomElement &domElement, const QString &name, const bool &value) const
|
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 a new issue