From: Ivailo Monev Date: Mon, 19 Apr 2021 14:51:32 +0000 (+0300) Subject: avoid temporaries in SVG handler X-Git-Tag: 4.12.0~2326 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fed06f6c403e46991509bd76fb9195c61192ac85;p=kde%2FKatie.git avoid temporaries in SVG handler Signed-off-by: Ivailo Monev --- diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 8365fd193..a43ecb549 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -2515,8 +2515,7 @@ static QSvgNode *createGNode(QSvgNode *parent, QSvgHandler *) { Q_UNUSED(attributes); - QSvgG *node = new QSvgG(parent); - return node; + return new QSvgG(parent); } static bool parseGlyphNode(QSvgStyleProperty *parent, @@ -3089,8 +3088,7 @@ static QSvgNode *createSwitchNode(QSvgNode *parent, QSvgHandler *) { Q_UNUSED(attributes); - QSvgSwitch *node = new QSvgSwitch(parent); - return node; + return new QSvgSwitch(parent); } static bool parseTbreakNode(QSvgNode *parent, @@ -3186,8 +3184,7 @@ static QSvgNode *createUseNode(QSvgNode *parent, //delay link resolving till the first draw call on //use nodes, link 2might have not been created yet - QSvgUse *node = new QSvgUse(pt, parent, link); - return node; + return new QSvgUse(pt, parent, link); } }