summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:59:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit9f7f7d6cfa379a25730bfe8fb2d4638c08e59b90 (patch)
tree63a9c9364b850e8f011ffbed9e51221921fd74cf /sw/inc
parenteb96c8634a890071c72592a51afdacc2120a08b9 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I7e7cdfa5efaf18bb47d40947d4e1d91a2c9b5a57
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/accmap.hxx6
-rw-r--r--sw/inc/dbmgr.hxx12
-rw-r--r--sw/inc/ndole.hxx2
-rw-r--r--sw/inc/unoframe.hxx2
-rw-r--r--sw/inc/unotxdoc.hxx4
5 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx
index 25c96967e6dd..ecb0520164ef 100644
--- a/sw/inc/accmap.hxx
+++ b/sw/inc/accmap.hxx
@@ -159,11 +159,11 @@ public:
}
static bool IsInSameLevel(const SdrObject* pObj, const SwFEShell* pFESh);
void AddShapeContext(const SdrObject *pObj,
- css::uno::Reference < css::accessibility::XAccessible > xAccShape);
+ css::uno::Reference < css::accessibility::XAccessible > const & xAccShape);
void AddGroupContext(const SdrObject *pParentObj,
- css::uno::Reference < css::accessibility::XAccessible > xAccParent);
- void RemoveGroupContext(const SdrObject *pParentObj, css::uno::Reference < css::accessibility::XAccessible > xAccParent);
+ css::uno::Reference < css::accessibility::XAccessible > const & xAccParent);
+ void RemoveGroupContext(const SdrObject *pParentObj, css::uno::Reference < css::accessibility::XAccessible > const & xAccParent);
const SwRect& GetVisArea() const;
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 113f33d45010..222e55c07df5 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -306,12 +306,12 @@ public:
void GetColumnNames(ListBox* pListBox,
const OUString& rDBName, const OUString& rTableName);
static void GetColumnNames(ListBox* pListBox,
- css::uno::Reference< css::sdbc::XConnection> xConnection,
+ css::uno::Reference< css::sdbc::XConnection> const & xConnection,
const OUString& rTableName);
- static sal_uLong GetColumnFormat( css::uno::Reference< css::sdbc::XDataSource> xSource,
- css::uno::Reference< css::sdbc::XConnection> xConnection,
- css::uno::Reference< css::beans::XPropertySet> xColumn,
+ static sal_uLong GetColumnFormat( css::uno::Reference< css::sdbc::XDataSource> const & xSource,
+ css::uno::Reference< css::sdbc::XConnection> const & xConnection,
+ css::uno::Reference< css::beans::XPropertySet> const & xColumn,
SvNumberFormatter* pNFormatr,
long nLanguage );
@@ -366,7 +366,7 @@ public:
static const SwDBData& GetAddressDBName();
static OUString GetDBField(
- css::uno::Reference< css::beans::XPropertySet > xColumnProp,
+ css::uno::Reference< css::beans::XPropertySet > const & xColumnProp,
const SwDBFormatData& rDBFormatData,
double *pNumber = nullptr);
@@ -375,7 +375,7 @@ public:
css::uno::Reference< css::sdbc::XDataSource>& rxSource);
static css::uno::Reference< css::sdbcx::XColumnsSupplier>
- GetColumnSupplier(css::uno::Reference< css::sdbc::XConnection>,
+ GetColumnSupplier(css::uno::Reference< css::sdbc::XConnection> const & xConnection,
const OUString& rTableOrQuery,
SwDBSelect eTableOrQuery = SwDBSelect::UNKNOWN);
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index fe1bab2f599d..4d3a3fbbb68a 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -51,7 +51,7 @@ public:
~SwOLEObj();
bool UnloadObject();
- static bool UnloadObject( css::uno::Reference< css::embed::XEmbeddedObject > xObj,
+ static bool UnloadObject( css::uno::Reference< css::embed::XEmbeddedObject > const & xObj,
const SwDoc* pDoc,
sal_Int64 nAspect );
diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx
index 5135a9a525c4..fe492a569e05 100644
--- a/sw/inc/unoframe.hxx
+++ b/sw/inc/unoframe.hxx
@@ -322,7 +322,7 @@ class SwXOLEListener : public cppu::WeakImplHelper
SwFormat* GetFormat() const { return const_cast<SwFormat*>(static_cast<const SwFormat*>(GetRegisteredIn())); }
public:
- SwXOLEListener(SwFormat& rOLEFormat, css::uno::Reference< css::frame::XModel > xOLE);
+ SwXOLEListener(SwFormat& rOLEFormat, css::uno::Reference< css::frame::XModel > const & xOLE);
virtual ~SwXOLEListener();
// css::lang::XEventListener
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index 07c9ab0ebb43..077493f2be74 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -453,7 +453,7 @@ public:
SwUnoCursor* FindAny(const css::uno::Reference< css::util::XSearchDescriptor > & xDesc,
css::uno::Reference< css::text::XTextCursor > & xCursor, bool bAll,
sal_Int32& nResult,
- css::uno::Reference< css::uno::XInterface > xLastResult);
+ css::uno::Reference< css::uno::XInterface > const & xLastResult);
SwDocShell* GetDocShell() {return pDocShell;}
@@ -513,7 +513,7 @@ class SwXLinkNameAccessWrapper : public cppu::WeakImplHelper
SwXTextDocument* pxDoc;
public:
- SwXLinkNameAccessWrapper(css::uno::Reference< css::container::XNameAccess > xAccess,
+ SwXLinkNameAccessWrapper(css::uno::Reference< css::container::XNameAccess > const & xAccess,
const OUString& rLinkDisplayName, const OUString& sSuffix);
SwXLinkNameAccessWrapper(SwXTextDocument& rxDoc,
const OUString& rLinkDisplayName, const OUString& sSuffix);