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