summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:29:05 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:52 +0200
commit523036daaddf466eee46183bbec9a71d45c48a41 (patch)
tree21582b9f2ac1b8714233d7cb4d4c1aba17a15c3e /sfx2/source/view
parent746289bf97ee6eeaf8a1df6b040dd9ae29bab0ce (diff)
loplugin:passstuffbyref in sfx2
Change-Id: I8c9d6e972f74ee04c8befda3b4cabb6e9b6b2054
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/frame.cxx2
-rw-r--r--sfx2/source/view/ipclient.cxx4
-rw-r--r--sfx2/source/view/viewprn.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 013bd14583cc..6850a4ef0afd 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -702,7 +702,7 @@ css::uno::Reference< css::frame::XController > SfxFrame::GetController() const
return css::uno::Reference< css::frame::XController > ();
}
-css::uno::Reference< css::frame::XFrame > SfxFrame::GetFrameInterface() const
+const css::uno::Reference< css::frame::XFrame >& SfxFrame::GetFrameInterface() const
{
return pImp->xFrame;
}
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index cd3f783fc9dd..a586a26f3187 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -666,7 +666,7 @@ sal_Int64 SfxInPlaceClient::GetObjectMiscStatus() const
}
-uno::Reference < embed::XEmbeddedObject > SfxInPlaceClient::GetObject() const
+const uno::Reference < embed::XEmbeddedObject >& SfxInPlaceClient::GetObject() const
{
return m_pImp->m_xObject;
}
@@ -738,7 +738,7 @@ bool SfxInPlaceClient::SetObjArea( const Rectangle& rArea )
}
-Rectangle SfxInPlaceClient::GetObjArea() const
+const Rectangle& SfxInPlaceClient::GetObjArea() const
{
return m_pImp->m_aObjArea;
}
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index 448c043c0796..12018db5cb5c 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -622,7 +622,7 @@ void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >& rPro
Printer::PrintJob( GetPrinterController(), aJobSetup );
}
-std::shared_ptr< vcl::PrinterController > SfxViewShell::GetPrinterController() const
+const std::shared_ptr< vcl::PrinterController >& SfxViewShell::GetPrinterController() const
{
return pImp->m_xPrinterController;
}