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

Change-Id: I121d77de11705a4314b875374bf9f499a8afff47
This commit is contained in:
Stephan Bergmann 2016-07-07 15:57:21 +02:00
parent 82dafd096a
commit 518d998e47
8 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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 );

View File

@ -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;

View File

@ -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 );

View File

@ -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)

View File

@ -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

View File

@ -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:") &&

View File

@ -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 );