Kaydet (Commit) dad4ddbb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:passstuffbyref also for {css::uno,rtl}::Reference

Change-Id: I0add8faa004c14226ef76125a55dc9e82b37a488
üst 69257ddb
......@@ -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.
......
......@@ -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;
......
......@@ -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);
}
}
......
......@@ -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());
......
......@@ -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:
......
......@@ -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)
{
}
......
......@@ -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;
......
......@@ -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)
{
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment