summaryrefslogtreecommitdiff
path: root/src/svg/qsvghandler_p.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-10-04 17:29:54 +0200
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-10-07 09:09:51 +0200
commita72ce34fd4f2fb0035bd982201bafedc0b6cd364 (patch)
tree5a101de5076a4d3793aef159e18aef0065bbe091 /src/svg/qsvghandler_p.h
parenta7cb54082e3fd47758b8f17b0ece15a2f8c38aa5 (diff)
downloadqtsvg-a72ce34fd4f2fb0035bd982201bafedc0b6cd364.tar.gz
Small performance improvements suggested by clang-tidyv5.14.0-beta2
* Add const & to function parameters * std::move an brush * Add const & to variables assigned from functions returning const & Change-Id: If412b78cc0198e24ce1c611fcd2026d0d723be80 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/svg/qsvghandler_p.h')
-rw-r--r--src/svg/qsvghandler_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvghandler_p.h b/src/svg/qsvghandler_p.h
index 8eb061b..d76e56c 100644
--- a/src/svg/qsvghandler_p.h
+++ b/src/svg/qsvghandler_p.h
@@ -128,7 +128,7 @@ public:
int animationDuration() const;
#ifndef QT_NO_CSSPARSER
- void parseCSStoXMLAttrs(QString css, QVector<QSvgCssAttribute> *attributes);
+ void parseCSStoXMLAttrs(const QString &css, QVector<QSvgCssAttribute> *attributes);
#endif
inline QPen defaultPen() const