diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-11 13:10:00 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-11 15:12:10 +0200 |
commit | 76bff82cc637c10c8dbbbb7148e07555cf8e7ff4 (patch) | |
tree | 4e090024b0fa98631748903b25c55ef625760216 | |
parent | d036e4df855798b31ff0e782c98be43be455883f (diff) |
clang-tidy performance-unnecessary-value-param in sax
Change-Id: I46aad7b0a96210e5f3f278c3f6f3a945825b7cae
-rw-r--r-- | include/sax/fshelper.hxx | 4 | ||||
-rw-r--r-- | sax/source/tools/fshelper.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx index e1046b12cbfc..4c79a367eb80 100644 --- a/include/sax/fshelper.hxx +++ b/include/sax/fshelper.hxx @@ -114,11 +114,11 @@ public: inline void endElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId) { endElement( FSNS( namespaceTokenId, elementTokenId ) ); } - void singleElement(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList); + void singleElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList); inline void singleElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList) { singleElement(FSNS( namespaceTokenId, elementTokenId), xAttrList); } - void startElement(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList); + void startElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList); inline void startElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList) { startElement( FSNS( namespaceTokenId, elementTokenId ), xAttrList ); } diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx index e2150d47e12d..9456743d80bc 100644 --- a/sax/source/tools/fshelper.cxx +++ b/sax/source/tools/fshelper.cxx @@ -85,14 +85,14 @@ void FastSerializerHelper::endElement(sal_Int32 elementTokenId) mpSerializer->endFastElement(elementTokenId); } -void FastSerializerHelper::startElement(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList) +void FastSerializerHelper::startElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList) { FastAttributeList* pAttrList = dynamic_cast< FastAttributeList* >(xAttrList.get()); assert(pAttrList); mpSerializer->startFastElement(elementTokenId, pAttrList); } -void FastSerializerHelper::singleElement(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList) +void FastSerializerHelper::singleElement(sal_Int32 elementTokenId, const XFastAttributeListRef& xAttrList) { FastAttributeList* pAttrList = dynamic_cast< FastAttributeList* >(xAttrList.get()); assert(pAttrList); |