diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 10:11:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 12:41:09 +0000 |
commit | 5a308b1239a09417507b0d05090ff2d3418d5133 (patch) | |
tree | 990fa9015a4107e4916691eb4dee80fa5713e96b /filter | |
parent | c1a227600d0b16df283162d24f1a31f5c9cee474 (diff) |
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 4 | ||||
-rw-r--r-- | filter/source/svg/svgfilter.hxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgreader.cxx | 28 |
3 files changed, 17 insertions, 17 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index db8a76c6a853..efe3e8ccef83 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -317,11 +317,11 @@ bool operator==( const TextField & aLhsTextField, const TextField & aRhsTextFiel SVGExport::SVGExport( - const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext, const Reference< XDocumentHandler >& rxHandler, const Sequence< PropertyValue >& rFilterData ) : SvXMLExport( util::MeasureUnit::MM_100TH, - xContext, "", + rContext, "", xmloff::token::XML_TOKEN_INVALID, SvXMLExportFlags::META|SvXMLExportFlags::PRETTY ) { diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index e42fbb1f4605..dfb3763fc5f3 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -98,7 +98,7 @@ class SVGExport : public SvXMLExport public: - SVGExport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, + SVGExport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext, const Reference< XDocumentHandler >& rxHandler, const Sequence< PropertyValue >& rFilterData ); diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index bf1ae76aa325..de9780fd5fcb 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -59,10 +59,10 @@ namespace /** visits all children of the specified type with the given functor */ template<typename Func> void visitChildren(const Func& rFunc, - const uno::Reference<xml::dom::XElement> xElem, + const uno::Reference<xml::dom::XElement>& rElem, xml::dom::NodeType eChildType ) { - uno::Reference<xml::dom::XNodeList> xChildren( xElem->getChildNodes() ); + uno::Reference<xml::dom::XNodeList> xChildren( rElem->getChildNodes() ); const sal_Int32 nNumNodes( xChildren->getLength() ); for( sal_Int32 i=0; i<nNumNodes; ++i ) { @@ -78,22 +78,22 @@ template<typename Func> void visitChildren(const Func& rFunc, element's attributes, if any */ template<typename Func> void visitElements(Func& rFunc, - const uno::Reference<xml::dom::XElement> xElem, + const uno::Reference<xml::dom::XElement>& rElem, SvgiVisitorCaller eCaller) { - if( xElem->hasAttributes() ) - rFunc(xElem,xElem->getAttributes()); + if( rElem->hasAttributes() ) + rFunc(rElem, rElem->getAttributes()); else - rFunc(xElem); + rFunc(rElem); // notify children processing rFunc.push(); // recurse over children - if (eCaller == SHAPE_WRITER && xElem->getTagName() == "defs") { + if (eCaller == SHAPE_WRITER && rElem->getTagName() == "defs") { return; } - uno::Reference<xml::dom::XNodeList> xChildren( xElem->getChildNodes() ); + uno::Reference<xml::dom::XNodeList> xChildren( rElem->getChildNodes() ); const sal_Int32 nNumNodes( xChildren->getLength() ); for( sal_Int32 i=0; i<nNumNodes; ++i ) { @@ -1173,11 +1173,11 @@ struct AnnotatingVisitor static void annotateStyles( StatePool& rStatePool, StateMap& rStateMap, const State& rInitialState, - const uno::Reference<xml::dom::XElement> xElem, + const uno::Reference<xml::dom::XElement>& rElem, const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl ) { AnnotatingVisitor aVisitor(rStatePool,rStateMap,rInitialState,xDocHdl); - visitElements(aVisitor, xElem, STYLE_ANNOTATOR); + visitElements(aVisitor, rElem, STYLE_ANNOTATOR); } struct ShapeWritingVisitor @@ -1716,11 +1716,11 @@ struct ShapeWritingVisitor /// Write out shapes from DOM tree static void writeShapes( StatePool& rStatePool, StateMap& rStateMap, - const uno::Reference<xml::dom::XElement> xElem, + const uno::Reference<xml::dom::XElement>& rElem, const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl ) { ShapeWritingVisitor aVisitor(rStatePool,rStateMap,xDocHdl); - visitElements(aVisitor, xElem, SHAPE_WRITER); + visitElements(aVisitor, rElem, SHAPE_WRITER); } } // namespace @@ -1832,11 +1832,11 @@ struct OfficeStylesWritingVisitor }; static void writeOfficeStyles( StateMap& rStateMap, - const uno::Reference<xml::dom::XElement> xElem, + const uno::Reference<xml::dom::XElement>& rElem, const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl ) { OfficeStylesWritingVisitor aVisitor( rStateMap, xDocHdl ); - visitElements( aVisitor, xElem, STYLE_WRITER ); + visitElements( aVisitor, rElem, STYLE_WRITER ); } #if OSL_DEBUG_LEVEL > 2 |