summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:57:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit518d998e47a88a93c232f50e09b54addb1cf923b (patch)
treefabe0e31615245c3ec38fe27be6e97bb153e88eb /filter
parent82dafd096a193df97a035e17a49d9ac4cb6c44f6 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I121d77de11705a4314b875374bf9f499a8afff47
Diffstat (limited to 'filter')
-rw-r--r--filter/source/flash/swfexporter.cxx4
-rw-r--r--filter/source/flash/swfexporter.hxx4
-rw-r--r--filter/source/placeware/exporter.cxx4
-rw-r--r--filter/source/placeware/exporter.hxx2
-rw-r--r--filter/source/t602/t602filter.cxx2
-rw-r--r--filter/source/t602/t602filter.hxx2
-rw-r--r--filter/source/xsltdialog/xmlfilterjar.cxx4
-rw-r--r--filter/source/xsltdialog/xmlfilterjar.hxx2
8 files changed, 12 insertions, 12 deletions
diff --git a/filter/source/flash/swfexporter.cxx b/filter/source/flash/swfexporter.cxx
index a79a7ed67eae..82833f7d1b4c 100644
--- a/filter/source/flash/swfexporter.cxx
+++ b/filter/source/flash/swfexporter.cxx
@@ -329,7 +329,7 @@ sal_uInt16 FlashExporter::exportBackgrounds( const Reference< XDrawPage >& xDraw
return nPage;
}
-sal_uInt16 FlashExporter::exportBackgrounds( Reference< XDrawPage > xDrawPage, sal_uInt16 nPage, bool bExportObjects )
+sal_uInt16 FlashExporter::exportBackgrounds( Reference< XDrawPage > const & xDrawPage, sal_uInt16 nPage, bool bExportObjects )
{
Reference< XPropertySet > xPropSet( xDrawPage, UNO_QUERY );
if( !xDrawPage.is() || !xPropSet.is() )
@@ -392,7 +392,7 @@ sal_Int32 nPlaceDepth;
// should be reused. The return value indicates which slide's background to use.
// If the return value != nPage, then there is no background (if == -1) or the
// background has already been exported.
-sal_uInt16 FlashExporter::exportDrawPageBackground(sal_uInt16 nPage, Reference< XDrawPage >& xPage)
+sal_uInt16 FlashExporter::exportDrawPageBackground(sal_uInt16 nPage, Reference< XDrawPage > const & xPage)
{
sal_uInt16 rBackgroundID;
diff --git a/filter/source/flash/swfexporter.hxx b/filter/source/flash/swfexporter.hxx
index 5bf4f512062b..f65ad8efae04 100644
--- a/filter/source/flash/swfexporter.hxx
+++ b/filter/source/flash/swfexporter.hxx
@@ -131,7 +131,7 @@ public:
bool exportAll( const css::uno::Reference< css::lang::XComponent >& xDoc, css::uno::Reference< css::io::XOutputStream > &xOutputStream, css::uno::Reference< css::task::XStatusIndicator> &xStatusIndicator );
bool exportSlides( const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage, css::uno::Reference< css::io::XOutputStream > &xOutputStream, sal_uInt16 nPage);
sal_uInt16 exportBackgrounds( const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage, css::uno::Reference< css::io::XOutputStream > &xOutputStream, sal_uInt16 nPage, bool bExportObjects );
- sal_uInt16 exportBackgrounds( css::uno::Reference< css::drawing::XDrawPage > xDrawPage, sal_uInt16 nPage, bool bExportObjects );
+ sal_uInt16 exportBackgrounds( css::uno::Reference< css::drawing::XDrawPage > const & xDrawPage, sal_uInt16 nPage, bool bExportObjects );
ChecksumCache gMasterCache;
ChecksumCache gPrivateCache;
@@ -150,7 +150,7 @@ private:
::std::map<sal_uInt32, PageInfo> maPagesMap;
- sal_uInt16 exportDrawPageBackground(sal_uInt16 nPage, css::uno::Reference< css::drawing::XDrawPage >& xPage);
+ sal_uInt16 exportDrawPageBackground(sal_uInt16 nPage, css::uno::Reference< css::drawing::XDrawPage > const & xPage);
sal_uInt16 exportMasterPageObjects(sal_uInt16 nPage, css::uno::Reference< css::drawing::XDrawPage >& xMasterPage);
void exportDrawPageContents( const css::uno::Reference< css::drawing::XDrawPage >& xPage, bool bStream, bool bMaster );
diff --git a/filter/source/placeware/exporter.cxx b/filter/source/placeware/exporter.cxx
index dc259fd7fe57..bf5d30d1f71c 100644
--- a/filter/source/placeware/exporter.cxx
+++ b/filter/source/placeware/exporter.cxx
@@ -103,7 +103,7 @@ PageEntry::~PageEntry()
}
-static void encodeFile( osl::File& rSourceFile, Reference< XOutputStream >& xOutputStream ) throw( css::uno::Exception )
+static void encodeFile( osl::File& rSourceFile, Reference< XOutputStream > const & xOutputStream ) throw( css::uno::Exception )
{
if( xOutputStream.is() )
{
@@ -281,7 +281,7 @@ static void createSlideFile( const Reference< XComponent >& xDoc, PlacewareZipFi
//#define PLACEWARE_DEBUG 1
-bool PlaceWareExporter::doExport( const Reference< XComponent >& xDoc, Reference < XOutputStream > xOutputStream,
+bool PlaceWareExporter::doExport( const Reference< XComponent >& xDoc, Reference < XOutputStream > const &xOutputStream,
const OUString& rURL, const Reference < XInterface >& /* xHandler */, Reference < XStatusIndicator >& xStatusIndicator )
{
bool bRet = false;
diff --git a/filter/source/placeware/exporter.hxx b/filter/source/placeware/exporter.hxx
index a855a977ddf3..015c1a78740a 100644
--- a/filter/source/placeware/exporter.hxx
+++ b/filter/source/placeware/exporter.hxx
@@ -36,7 +36,7 @@ public:
~PlaceWareExporter();
bool doExport( const css::uno::Reference< css::lang::XComponent >& xDoc,
- css::uno::Reference < css::io::XOutputStream > xOutputStream,
+ css::uno::Reference < css::io::XOutputStream > const & xOutputStream,
const OUString& rURL,
const css::uno::Reference < css::uno::XInterface >& xHandler,
css::uno::Reference < css::task::XStatusIndicator >& rxStatusIndicator );
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index ade1e60e0c05..e1df97f839e5 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -140,7 +140,7 @@ T602ImportFilter::T602ImportFilter(const css::uno::Reference<css::lang::XMultiSe
{
}
-T602ImportFilter::T602ImportFilter(css::uno::Reference<css::io::XInputStream> xInputStream)
+T602ImportFilter::T602ImportFilter(css::uno::Reference<css::io::XInputStream> const & xInputStream)
: mxInputStream(xInputStream)
, mpAttrList(nullptr)
, node(tnode::START)
diff --git a/filter/source/t602/t602filter.hxx b/filter/source/t602/t602filter.hxx
index 62701c0da789..631e6e1b77a5 100644
--- a/filter/source/t602/t602filter.hxx
+++ b/filter/source/t602/t602filter.hxx
@@ -253,7 +253,7 @@ private:
public:
explicit T602ImportFilter(const css::uno::Reference<css::lang::XMultiServiceFactory > &r );
- explicit T602ImportFilter(css::uno::Reference<css::io::XInputStream> xInputStream);
+ explicit T602ImportFilter(css::uno::Reference<css::io::XInputStream> const & xInputStream);
virtual ~T602ImportFilter();
// XFilter
diff --git a/filter/source/xsltdialog/xmlfilterjar.cxx b/filter/source/xsltdialog/xmlfilterjar.cxx
index 6c0876fb2259..11eba3123d46 100644
--- a/filter/source/xsltdialog/xmlfilterjar.cxx
+++ b/filter/source/xsltdialog/xmlfilterjar.cxx
@@ -101,7 +101,7 @@ static Reference< XInterface > addFolder( Reference< XInterface >& xRootFolder,
return xFolder;
}
-static void addFile_( Reference< XInterface >& xRootFolder, Reference< XSingleServiceFactory >& xFactory, Reference< XInputStream >& xInput, const OUString& aName ) throw( Exception )
+static void addFile_( Reference< XInterface > const & xRootFolder, Reference< XSingleServiceFactory > const & xFactory, Reference< XInputStream > const & xInput, const OUString& aName ) throw( Exception )
{
Reference< XActiveDataSink > xSink( xFactory->createInstance(), UNO_QUERY );
Reference< XUnoTunnel > xTunnel( xSink, UNO_QUERY );
@@ -113,7 +113,7 @@ static void addFile_( Reference< XInterface >& xRootFolder, Reference< XSingleSe
}
}
-void XMLFilterJarHelper::addFile( Reference< XInterface > xRootFolder, Reference< XSingleServiceFactory > xFactory, const OUString& rSourceFile ) throw( Exception, std::exception )
+void XMLFilterJarHelper::addFile( Reference< XInterface > const & xRootFolder, Reference< XSingleServiceFactory > const & xFactory, const OUString& rSourceFile ) throw( Exception, std::exception )
{
if( !rSourceFile.isEmpty() &&
!rSourceFile.startsWith("http:") &&
diff --git a/filter/source/xsltdialog/xmlfilterjar.hxx b/filter/source/xsltdialog/xmlfilterjar.hxx
index 4a57ce8b961a..be76e3cdedc8 100644
--- a/filter/source/xsltdialog/xmlfilterjar.hxx
+++ b/filter/source/xsltdialog/xmlfilterjar.hxx
@@ -38,7 +38,7 @@ public:
void openPackage( const OUString& rPackageURL, XMLFilterVector& rFilters );
private:
- void addFile( css::uno::Reference< css::uno::XInterface > xRootFolder, css::uno::Reference< css::lang::XSingleServiceFactory > xFactory, const OUString& rSourceFile ) throw( css::uno::Exception, std::exception );
+ void addFile( css::uno::Reference< css::uno::XInterface > const & xRootFolder, css::uno::Reference< css::lang::XSingleServiceFactory > const & xFactory, const OUString& rSourceFile ) throw( css::uno::Exception, std::exception );
bool copyFile( const css::uno::Reference< css::container::XHierarchicalNameAccess >& xIfc, OUString& rURL, const OUString& rTargetURL );
bool copyFiles( const css::uno::Reference< css::container::XHierarchicalNameAccess >& xIfc, filter_info_impl* pFilter );