summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 16:00:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commitdad4ddbbde689340d90f0480b838577dbbe618fe (patch)
tree4967ea2d2d4a068a6704b568e90c21fe8053d221
parent69257ddb575829b1677afef90517e316b1b5bb12 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I0add8faa004c14226ef76125a55dc9e82b37a488
-rw-r--r--writerfilter/source/dmapper/TableData.hxx4
-rw-r--r--writerfilter/source/dmapper/util.cxx2
-rw-r--r--writerfilter/source/dmapper/util.hxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.hxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.cxx6
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySet.hxx6
-rw-r--r--writerfilter/source/ooxml/OOXMLStreamImpl.cxx4
-rw-r--r--writerfilter/source/ooxml/OOXMLStreamImpl.hxx4
9 files changed, 16 insertions, 16 deletions
diff --git a/writerfilter/source/dmapper/TableData.hxx b/writerfilter/source/dmapper/TableData.hxx
index 84100cbb95f1..19aa4cd88ed9 100644
--- a/writerfilter/source/dmapper/TableData.hxx
+++ b/writerfilter/source/dmapper/TableData.hxx
@@ -55,7 +55,7 @@ class CellData
public:
typedef std::shared_ptr<CellData> Pointer_t;
- CellData(css::uno::Reference<css::text::XTextRange> start, TablePropertyMapPtr pProps)
+ CellData(css::uno::Reference<css::text::XTextRange> const & start, TablePropertyMapPtr pProps)
: mStart(start), mEnd(start), mpProps(pProps), mbOpen(true)
{
}
@@ -67,7 +67,7 @@ public:
@param end the end handle of the cell
*/
- void setEnd(css::uno::Reference<css::text::XTextRange> end) { mEnd = end; mbOpen = false; }
+ void setEnd(css::uno::Reference<css::text::XTextRange> const & end) { mEnd = end; mbOpen = false; }
/**
Adds properties to the cell.
diff --git a/writerfilter/source/dmapper/util.cxx b/writerfilter/source/dmapper/util.cxx
index d6f73c254ba4..7886bba5c684 100644
--- a/writerfilter/source/dmapper/util.cxx
+++ b/writerfilter/source/dmapper/util.cxx
@@ -27,7 +27,7 @@ namespace dmapper
{
using namespace com::sun::star;
-std::string XTextRangeToString(uno::Reference< text::XTextRange > textRange)
+std::string XTextRangeToString(uno::Reference< text::XTextRange > const & textRange)
{
std::string result;
diff --git a/writerfilter/source/dmapper/util.hxx b/writerfilter/source/dmapper/util.hxx
index a57e6eb051b1..e7adfdadef82 100644
--- a/writerfilter/source/dmapper/util.hxx
+++ b/writerfilter/source/dmapper/util.hxx
@@ -28,7 +28,7 @@ namespace writerfilter
{
namespace dmapper
{
- std::string XTextRangeToString(css::uno::Reference< css::text::XTextRange > textRange);
+ std::string XTextRangeToString(css::uno::Reference< css::text::XTextRange > const & textRange);
void resolveSprmProps(Properties & rHandler, Sprm & rSprm);
}
}
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 5edac7a4f46d..a350fc73ef0d 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -1692,7 +1692,7 @@ void OOXMLFastContextHandlerShape::lcl_characters
OOXMLFastContextHandlerWrapper::OOXMLFastContextHandlerWrapper
(OOXMLFastContextHandler * pParent,
- uno::Reference<XFastContextHandler> xContext)
+ uno::Reference<XFastContextHandler> const & xContext)
: OOXMLFastContextHandler(pParent), mxContext(xContext)
{
setId(pParent->getId());
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
index 34c118dcc3d3..40f9d378cd54 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx
@@ -480,7 +480,7 @@ protected:
class OOXMLFastContextHandlerWrapper : public OOXMLFastContextHandler
{
public:
- explicit OOXMLFastContextHandlerWrapper(OOXMLFastContextHandler * pParent, css::uno::Reference<css::xml::sax::XFastContextHandler> xContext);
+ explicit OOXMLFastContextHandlerWrapper(OOXMLFastContextHandler * pParent, css::uno::Reference<css::xml::sax::XFastContextHandler> const & xContext);
virtual ~OOXMLFastContextHandlerWrapper();
// css::xml::sax::XFastContextHandler:
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
index 81e52ace7594..5c0c3ccfeb08 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx
@@ -307,7 +307,7 @@ OOXMLValue * OOXMLStringValue::clone() const
/*
class OOXMLInputStreamValue
*/
-OOXMLInputStreamValue::OOXMLInputStreamValue(uno::Reference<io::XInputStream> xInputStream)
+OOXMLInputStreamValue::OOXMLInputStreamValue(uno::Reference<io::XInputStream> const & xInputStream)
: mxInputStream(xInputStream)
{
}
@@ -630,7 +630,7 @@ string OOXMLUniversalMeasureValue::toString() const
*/
-OOXMLShapeValue::OOXMLShapeValue(uno::Reference<drawing::XShape> rShape)
+OOXMLShapeValue::OOXMLShapeValue(uno::Reference<drawing::XShape> const & rShape)
: mrShape(rShape)
{
}
@@ -661,7 +661,7 @@ OOXMLValue * OOXMLShapeValue::clone() const
*/
-OOXMLStarMathValue::OOXMLStarMathValue( uno::Reference< embed::XEmbeddedObject > c )
+OOXMLStarMathValue::OOXMLStarMathValue( uno::Reference< embed::XEmbeddedObject > const & c )
: component(c)
{
}
diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx
index 27e7b1233348..812ca9cee38f 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx
@@ -128,7 +128,7 @@ protected:
css::uno::Reference<css::io::XInputStream> mxInputStream;
public:
- explicit OOXMLInputStreamValue(css::uno::Reference<css::io::XInputStream> xInputStream);
+ explicit OOXMLInputStreamValue(css::uno::Reference<css::io::XInputStream> const & xInputStream);
virtual ~OOXMLInputStreamValue();
virtual css::uno::Any getAny() const override;
@@ -250,7 +250,7 @@ class OOXMLShapeValue : public OOXMLValue
protected:
css::uno::Reference<css::drawing::XShape> mrShape;
public:
- explicit OOXMLShapeValue(css::uno::Reference<css::drawing::XShape> rShape);
+ explicit OOXMLShapeValue(css::uno::Reference<css::drawing::XShape> const & rShape);
virtual ~OOXMLShapeValue();
virtual css::uno::Any getAny() const override;
@@ -265,7 +265,7 @@ class OOXMLStarMathValue : public OOXMLValue
protected:
css::uno::Reference< css::embed::XEmbeddedObject > component;
public:
- explicit OOXMLStarMathValue( css::uno::Reference< css::embed::XEmbeddedObject > component );
+ explicit OOXMLStarMathValue( css::uno::Reference< css::embed::XEmbeddedObject > const & component );
virtual ~OOXMLStarMathValue();
virtual css::uno::Any getAny() const override;
diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
index 4790d5eee53e..16d7ae31100b 100644
--- a/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLStreamImpl.cxx
@@ -32,8 +32,8 @@ namespace ooxml
using namespace com::sun::star;
OOXMLStreamImpl::OOXMLStreamImpl
-(uno::Reference<uno::XComponentContext> xContext,
- uno::Reference<io::XInputStream> xStorageStream,
+(uno::Reference<uno::XComponentContext> const & xContext,
+ uno::Reference<io::XInputStream> const & xStorageStream,
StreamType_t nType, bool bRepairStorage)
: mxContext(xContext), mxStorageStream(xStorageStream), mnStreamType(nType)
{
diff --git a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
index e50676da6e2c..6a1b1b48ab0c 100644
--- a/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
+++ b/writerfilter/source/ooxml/OOXMLStreamImpl.hxx
@@ -63,8 +63,8 @@ public:
OOXMLStreamImpl
(OOXMLStreamImpl & rStream, StreamType_t nType);
OOXMLStreamImpl
- (css::uno::Reference<css::uno::XComponentContext> xContext,
- css::uno::Reference<css::io::XInputStream> xStorageStream,
+ (css::uno::Reference<css::uno::XComponentContext> const & xContext,
+ css::uno::Reference<css::io::XInputStream> const & xStorageStream,
StreamType_t nType, bool bRepairStorage);
OOXMLStreamImpl(OOXMLStreamImpl & rStream, const OUString & rId);