summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-07-21 21:34:51 +0200
committerMichael Stahl <mstahl@redhat.com>2014-07-22 16:32:35 +0200
commit2354d22b7ce12738bb929fc9c513e70ebd9f34fb (patch)
tree61f414a7e0912a6fd4cf39477489f0f4e455a856
parent1398bdf35ecffcf4629f81f64cab51ab1b6a24ad (diff)
writerfilter: pass uno::Reference by reference in RTFValue
Change-Id: I21d81d4454e65cf7f341f659b70b684dc3aa4621
-rw-r--r--writerfilter/source/rtftok/rtfvalue.cxx19
-rw-r--r--writerfilter/source/rtftok/rtfvalue.hxx14
2 files changed, 19 insertions, 14 deletions
diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx
index bbfafd4da262..986cd76a0699 100644
--- a/writerfilter/source/rtftok/rtfvalue.cxx
+++ b/writerfilter/source/rtftok/rtfvalue.cxx
@@ -18,9 +18,12 @@ namespace rtftok
{
-RTFValue::RTFValue(int nValue, const OUString& sValue, RTFSprms rAttributes,
- RTFSprms rSprms, uno::Reference<drawing::XShape> xShape,
- uno::Reference<io::XInputStream> xStream, uno::Reference<embed::XEmbeddedObject> xObject, bool bForceString,
+RTFValue::RTFValue(int nValue, const OUString& sValue,
+ RTFSprms rAttributes, RTFSprms rSprms,
+ uno::Reference<drawing::XShape> const& xShape,
+ uno::Reference<io::XInputStream> const& xStream,
+ uno::Reference<embed::XEmbeddedObject> const& xObject,
+ bool bForceString,
const RTFShape& aShape)
: m_nValue(nValue),
m_sValue(sValue),
@@ -99,10 +102,10 @@ RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms)
m_pShape.reset(new RTFShape());
}
-RTFValue::RTFValue(uno::Reference<drawing::XShape> rShape)
+RTFValue::RTFValue(uno::Reference<drawing::XShape> const& xShape)
: m_nValue(),
m_sValue(),
- m_xShape(rShape),
+ m_xShape(xShape),
m_xStream(),
m_xObject(),
m_bForceString(false)
@@ -112,11 +115,11 @@ RTFValue::RTFValue(uno::Reference<drawing::XShape> rShape)
m_pShape.reset(new RTFShape());
}
-RTFValue::RTFValue(uno::Reference<io::XInputStream> rStream)
+RTFValue::RTFValue(uno::Reference<io::XInputStream> const& xStream)
: m_nValue(),
m_sValue(),
m_xShape(),
- m_xStream(rStream),
+ m_xStream(xStream),
m_xObject(),
m_bForceString(false)
{
@@ -125,7 +128,7 @@ RTFValue::RTFValue(uno::Reference<io::XInputStream> rStream)
m_pShape.reset(new RTFShape());
}
-RTFValue::RTFValue(uno::Reference<embed::XEmbeddedObject> xObject)
+RTFValue::RTFValue(uno::Reference<embed::XEmbeddedObject> const& xObject)
: m_nValue(),
m_sValue(),
m_xShape(),
diff --git a/writerfilter/source/rtftok/rtfvalue.hxx b/writerfilter/source/rtftok/rtfvalue.hxx
index af7d85744b42..9e9ec25358a1 100644
--- a/writerfilter/source/rtftok/rtfvalue.hxx
+++ b/writerfilter/source/rtftok/rtfvalue.hxx
@@ -26,17 +26,19 @@ class RTFValue
{
public:
typedef boost::shared_ptr<RTFValue> Pointer_t;
- RTFValue(int nValue, const OUString& sValue, RTFSprms rAttributes, RTFSprms rSprms, css::uno::Reference<css::drawing::XShape> rShape,
- css::uno::Reference<css::io::XInputStream> rStream, css::uno::Reference<css::embed::XEmbeddedObject> rObject, bool bForceString,
- const RTFShape& aShape);
+ RTFValue(int nValue, const OUString& sValue, RTFSprms rAttributes, RTFSprms rSprms,
+ css::uno::Reference<css::drawing::XShape> const& xShape,
+ css::uno::Reference<css::io::XInputStream> const& xStream,
+ css::uno::Reference<css::embed::XEmbeddedObject> const& xObject,
+ bool bForceString, const RTFShape& aShape);
RTFValue();
RTFValue(int nValue);
RTFValue(const OUString& sValue, bool bForce = false);
RTFValue(RTFSprms rAttributes);
RTFValue(RTFSprms rAttributes, RTFSprms rSprms);
- RTFValue(css::uno::Reference<css::drawing::XShape> rShape);
- RTFValue(css::uno::Reference<css::io::XInputStream> rStream);
- RTFValue(css::uno::Reference<css::embed::XEmbeddedObject> rObject);
+ RTFValue(css::uno::Reference<css::drawing::XShape> const& xShape);
+ RTFValue(css::uno::Reference<css::io::XInputStream> const& xStream);
+ RTFValue(css::uno::Reference<css::embed::XEmbeddedObject> const& xObject);
RTFValue(const RTFShape& aShape);
virtual ~RTFValue();
void setString(const OUString& sValue);