summaryrefslogtreecommitdiff
path: root/src/svg/qsvghandler.cpp
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.cpp
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.cpp')
-rw-r--r--src/svg/qsvghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index fe79977..86ca77e 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -1986,7 +1986,7 @@ static void parseCSStoXMLAttrs(const QVector<QCss::Declaration> &declarations,
}
}
-void QSvgHandler::parseCSStoXMLAttrs(QString css, QVector<QSvgCssAttribute> *attributes)
+void QSvgHandler::parseCSStoXMLAttrs(const QString &css, QVector<QSvgCssAttribute> *attributes)
{
// preprocess (for unicode escapes), tokenize and remove comments
m_cssParser.init(css);