summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 16:52:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 20:56:26 +0000
commit924b2923b8b1515a4c37079e72a2a9cc6010a4f4 (patch)
tree111cf075f4085a9d1b4f1a69e7d5cbcaff57133c /vcl
parentb926671283837ccf4ee1b283ff4fb286e29cedfd (diff)
V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpbmp.cxx2
-rw-r--r--vcl/inc/dndevdis.hxx2
-rw-r--r--vcl/inc/headless/svpbmp.hxx2
-rw-r--r--vcl/inc/opengl/salbmp.hxx2
-rw-r--r--vcl/inc/quartz/salbmp.h2
-rw-r--r--vcl/inc/salbmp.hxx2
-rw-r--r--vcl/inc/unx/salbmp.h2
-rw-r--r--vcl/inc/win/salbmp.h2
-rw-r--r--vcl/opengl/salbmp.cxx2
-rw-r--r--vcl/quartz/salbmp.cxx2
-rw-r--r--vcl/source/gdi/bitmapex.cxx4
-rw-r--r--vcl/source/window/dndevdis.cxx2
-rw-r--r--vcl/source/window/splitwin.cxx6
-rw-r--r--vcl/unx/generic/gdi/salbmp.cxx4
-rw-r--r--vcl/win/source/gdi/salbmp.cxx4
15 files changed, 20 insertions, 20 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx
index d9da88b920d7..23dae7e78352 100644
--- a/vcl/headless/svpbmp.cxx
+++ b/vcl/headless/svpbmp.cxx
@@ -104,7 +104,7 @@ bool SvpSalBitmap::Create( const SalBitmap& /*rSalBmp*/,
return false;
}
-bool SvpSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
+bool SvpSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
{
return false;
}
diff --git a/vcl/inc/dndevdis.hxx b/vcl/inc/dndevdis.hxx
index 2f356c719b7b..60b6bb3c297d 100644
--- a/vcl/inc/dndevdis.hxx
+++ b/vcl/inc/dndevdis.hxx
@@ -63,7 +63,7 @@ class DNDEventDispatcher: public ::cppu::WeakImplHelper3<
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable ) throw(::com::sun::star::uno::RuntimeException);
sal_Int32 fireDragGestureEvent( vcl::Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& xSource,
- const ::com::sun::star::uno::Any event, const Point& rOrigin, const sal_Int8 nDragAction )throw(::com::sun::star::uno::RuntimeException);
+ const ::com::sun::star::uno::Any& event, const Point& rOrigin, const sal_Int8 nDragAction )throw(::com::sun::star::uno::RuntimeException);
public:
diff --git a/vcl/inc/headless/svpbmp.hxx b/vcl/inc/headless/svpbmp.hxx
index 6a80c7cd0666..b0fc0769aa42 100644
--- a/vcl/inc/headless/svpbmp.hxx
+++ b/vcl/inc/headless/svpbmp.hxx
@@ -48,7 +48,7 @@ public:
SalGraphics* pGraphics ) SAL_OVERRIDE;
virtual bool Create( const SalBitmap& rSalBmp,
sal_uInt16 nNewBitCount ) SAL_OVERRIDE;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) SAL_OVERRIDE;
virtual void Destroy() SAL_OVERRIDE;
diff --git a/vcl/inc/opengl/salbmp.hxx b/vcl/inc/opengl/salbmp.hxx
index 84c64ede7bd4..e7b3052a27b9 100644
--- a/vcl/inc/opengl/salbmp.hxx
+++ b/vcl/inc/opengl/salbmp.hxx
@@ -65,7 +65,7 @@ public:
bool Create( const SalBitmap& rSalBmp ) SAL_OVERRIDE;
bool Create( const SalBitmap& rSalBmp, SalGraphics* pGraphics ) SAL_OVERRIDE;
bool Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount ) SAL_OVERRIDE;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) SAL_OVERRIDE;
diff --git a/vcl/inc/quartz/salbmp.h b/vcl/inc/quartz/salbmp.h
index 1be7b0da5cd9..9c2209d32e63 100644
--- a/vcl/inc/quartz/salbmp.h
+++ b/vcl/inc/quartz/salbmp.h
@@ -61,7 +61,7 @@ public:
bool Create( const SalBitmap& rSalBmp ) SAL_OVERRIDE;
bool Create( const SalBitmap& rSalBmp, SalGraphics* pGraphics ) SAL_OVERRIDE;
bool Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount ) SAL_OVERRIDE;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) SAL_OVERRIDE;
diff --git a/vcl/inc/salbmp.hxx b/vcl/inc/salbmp.hxx
index b450594f17f4..432c4df72c2a 100644
--- a/vcl/inc/salbmp.hxx
+++ b/vcl/inc/salbmp.hxx
@@ -47,7 +47,7 @@ public:
SalGraphics* pGraphics ) = 0;
virtual bool Create( const SalBitmap& rSalBmp,
sal_uInt16 nNewBitCount ) = 0;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) = 0;
virtual void Destroy() = 0;
diff --git a/vcl/inc/unx/salbmp.h b/vcl/inc/unx/salbmp.h
index 0403b5a2fdaa..0dc5b362866f 100644
--- a/vcl/inc/unx/salbmp.h
+++ b/vcl/inc/unx/salbmp.h
@@ -132,7 +132,7 @@ public:
virtual bool Create(
const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmapCanvas
- > xBitmapCanvas,
+ >& rBitmapCanvas,
Size& rSize,
bool bMask = false
) SAL_OVERRIDE;
diff --git a/vcl/inc/win/salbmp.h b/vcl/inc/win/salbmp.h
index d47346925309..b7d6622b8e19 100644
--- a/vcl/inc/win/salbmp.h
+++ b/vcl/inc/win/salbmp.h
@@ -84,7 +84,7 @@ public:
virtual bool Create( const SalBitmap& rSalBmpImpl ) SAL_OVERRIDE;
virtual bool Create( const SalBitmap& rSalBmpImpl, SalGraphics* pGraphics ) SAL_OVERRIDE;
virtual bool Create( const SalBitmap& rSalBmpImpl, sal_uInt16 nNewBitCount ) SAL_OVERRIDE;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask = false ) SAL_OVERRIDE;
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index bc94939c063b..3b60843cf379 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -133,7 +133,7 @@ bool OpenGLSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount
return false;
}
-bool OpenGLSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
+bool OpenGLSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
{
// TODO Is this method needed?
return false;
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 1de819593964..fd0fe7d22b8e 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -184,7 +184,7 @@ bool QuartzSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount
return false;
}
-bool QuartzSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
+bool QuartzSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
{
return false;
}
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index a95466d4cf33..6d35ec64b3c6 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -839,11 +839,11 @@ namespace
{
Bitmap impTransformBitmap(
const Bitmap& rSource,
- const Size aDestinationSize,
+ const Size& rDestinationSize,
const basegfx::B2DHomMatrix& rTransform,
bool bSmooth)
{
- Bitmap aDestination(aDestinationSize, 24);
+ Bitmap aDestination(rDestinationSize, 24);
std::unique_ptr<BitmapWriteAccess> xWrite(aDestination.AcquireWriteAccess());
if(xWrite)
diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx
index f422a9d99149..7ccaa99f298c 100644
--- a/vcl/source/window/dndevdis.cxx
+++ b/vcl/source/window/dndevdis.cxx
@@ -442,7 +442,7 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( vcl::Window *pWindow,
// DNDEventDispatcher::fireDragGestureRecognized
sal_Int32 DNDEventDispatcher::fireDragGestureEvent( vcl::Window *pWindow,
- const Reference< XDragSource >& xSource, const Any event,
+ const Reference< XDragSource >& xSource, const Any& event,
const Point& rOrigin, const sal_Int8 nDragAction
)
throw(::com::sun::star::uno::RuntimeException)
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 3dd3e8c62379..c777f371ea37 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -3095,15 +3095,15 @@ long SplitWindow::GetItemSize( sal_uInt16 nId, SplitWindowItemBits nBits ) const
return 0;
}
-void SplitWindow::SetItemSizeRange (sal_uInt16 nId, const Range aRange)
+void SplitWindow::SetItemSizeRange (sal_uInt16 nId, const Range& rRange)
{
sal_uInt16 nPos;
ImplSplitSet* pSet = ImplFindItem(mpBaseSet, nId, nPos);
if (pSet != NULL)
{
- pSet->mpItems[nPos].mnMinSize = aRange.Min();
- pSet->mpItems[nPos].mnMaxSize = aRange.Max();
+ pSet->mpItems[nPos].mnMinSize = rRange.Min();
+ pSet->mpItems[nPos].mnMaxSize = rRange.Max();
}
}
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx
index 45f0a9cd1637..f301148cb51f 100644
--- a/vcl/unx/generic/gdi/salbmp.cxx
+++ b/vcl/unx/generic/gdi/salbmp.cxx
@@ -735,12 +735,12 @@ bool X11SalBitmap::Create( const SalBitmap&, sal_uInt16 )
}
bool X11SalBitmap::Create(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& rBitmapCanvas,
Size& rSize,
bool bMask
) {
::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet >
- xFastPropertySet( xBitmapCanvas, ::com::sun::star::uno::UNO_QUERY );
+ xFastPropertySet( rBitmapCanvas, ::com::sun::star::uno::UNO_QUERY );
if( xFastPropertySet.get() ) {
sal_Int32 depth;
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 28764cd56799..8c81baa7e49e 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -689,10 +689,10 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, sal_uInt16 nNewBitCount )
return bRet;
}
-bool WinSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas, Size& /*rSize*/, bool bMask )
+bool WinSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& xBitmapCanvas, Size& /*rSize*/, bool bMask )
{
::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet >
- xFastPropertySet( xBitmapCanvas, ::com::sun::star::uno::UNO_QUERY );
+ xFastPropertySet( rBitmapCanvas, ::com::sun::star::uno::UNO_QUERY );
if( xFastPropertySet.get() ) {
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > args;