Remove unused local variables
This commit is contained in:
parent
9fd111d867
commit
c3e0ba8ff5
@ -885,7 +885,6 @@ void Svg::setScaleFactor(qreal ratio)
|
|||||||
d->scaleFactor = floor(ratio);
|
d->scaleFactor = floor(ratio);
|
||||||
d->s_lastScaleFactor = d->scaleFactor;
|
d->s_lastScaleFactor = d->scaleFactor;
|
||||||
// not resize() because we want to do it unconditionally
|
// not resize() because we want to do it unconditionally
|
||||||
QRectF rect;
|
|
||||||
|
|
||||||
d->naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
|
d->naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
|
||||||
if (d->naturalSize.isEmpty()) {
|
if (d->naturalSize.isEmpty()) {
|
||||||
@ -1031,7 +1030,6 @@ bool Svg::isValid() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// try very hard to avoid creation of a parser
|
// try very hard to avoid creation of a parser
|
||||||
QRectF rect;
|
|
||||||
QSizeF naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
|
QSizeF naturalSize = SvgRectsCache::instance()->naturalSize(d->path, d->scaleFactor);
|
||||||
if (!naturalSize.isEmpty()) {
|
if (!naturalSize.isEmpty()) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user