Optimization
--HG-- branch : feature
This commit is contained in:
parent
c002aec49a
commit
9eeeb7baa8
|
@ -2751,7 +2751,7 @@ void VPattern::SetDefCustom(bool value)
|
|||
{
|
||||
CheckTagExists(TagGradation);
|
||||
QDomNodeList tags = elementsByTagName(TagGradation);
|
||||
if (tags.size() == 0)
|
||||
if (tags.isEmpty())
|
||||
{
|
||||
qDebug()<<"Can't save attribute "<<AttrCustom<<Q_FUNC_INFO;
|
||||
return;
|
||||
|
@ -2812,7 +2812,7 @@ void VPattern::SetDefCustomHeight(int value)
|
|||
{
|
||||
CheckTagExists(TagGradation);
|
||||
QDomNodeList tags = elementsByTagName(TagGradation);
|
||||
if (tags.size() == 0)
|
||||
if (tags.isEmpty())
|
||||
{
|
||||
qDebug()<<"Can't save attribute "<<AttrDefHeight<<Q_FUNC_INFO;
|
||||
return;
|
||||
|
@ -2871,7 +2871,7 @@ void VPattern::SetDefCustomSize(int value)
|
|||
{
|
||||
CheckTagExists(TagGradation);
|
||||
QDomNodeList tags = elementsByTagName(TagGradation);
|
||||
if (tags.size() == 0)
|
||||
if (tags.isEmpty())
|
||||
{
|
||||
qDebug()<<"Can't save attribute "<<AttrDefSize<<Q_FUNC_INFO;
|
||||
return;
|
||||
|
|
|
@ -645,7 +645,7 @@ void VAbstractPattern::SetGradationHeights(const QMap<GHeights, bool> &options)
|
|||
{
|
||||
CheckTagExists(TagGradation);
|
||||
QDomNodeList tags = elementsByTagName(TagGradation);
|
||||
if (tags.size() == 0)
|
||||
if (tags.isEmpty())
|
||||
{
|
||||
qDebug()<<"Can't save tag "<<TagGradation<<Q_FUNC_INFO;
|
||||
return;
|
||||
|
@ -811,7 +811,7 @@ void VAbstractPattern::SetGradationSizes(const QMap<GSizes, bool> &options)
|
|||
{
|
||||
CheckTagExists(TagGradation);
|
||||
QDomNodeList tags = elementsByTagName(TagGradation);
|
||||
if (tags.size() == 0)
|
||||
if (tags.isEmpty())
|
||||
{
|
||||
qDebug()<<"Can't save tag "<<TagGradation<<Q_FUNC_INFO;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user