summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 10:11:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 12:41:09 +0000
commit5a308b1239a09417507b0d05090ff2d3418d5133 (patch)
tree990fa9015a4107e4916691eb4dee80fa5713e96b /framework
parentc1a227600d0b16df283162d24f1a31f5c9cee474 (diff)
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/stdtypes.h12
-rw-r--r--framework/source/layoutmanager/toolbarlayoutmanager.cxx4
-rw-r--r--framework/source/layoutmanager/toolbarlayoutmanager.hxx2
-rw-r--r--framework/source/uielement/toolbarmanager.cxx12
4 files changed, 15 insertions, 15 deletions
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index f0df075b9a46..6760033cf451 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -67,14 +67,14 @@ struct KeyEventHashCode
struct KeyEventEqualsFunc
{
- bool operator()(const css::awt::KeyEvent aKey1,
- const css::awt::KeyEvent aKey2) const
+ bool operator()(const css::awt::KeyEvent& rKey1,
+ const css::awt::KeyEvent& rKey2) const
{
return (
- (aKey1.KeyCode == aKey2.KeyCode ) &&
- //(aKey1.KeyChar == aKey2.KeyChar ) &&
- //(aKey1.KeyFunc == aKey2.KeyFunc ) &&
- (aKey1.Modifiers == aKey2.Modifiers)
+ (rKey1.KeyCode == rKey2.KeyCode ) &&
+ //(rKey1.KeyChar == rKey2.KeyChar ) &&
+ //(rKey1.KeyFunc == rKey2.KeyFunc ) &&
+ (rKey1.Modifiers == rKey2.Modifiers)
);
}
};
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
index 4a793ddc7a9c..f40b98d068f2 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
@@ -1048,10 +1048,10 @@ void ToolbarLayoutManager::setParentWindow(
}
}
-void ToolbarLayoutManager::setDockingAreaOffsets( const ::Rectangle aOffsets )
+void ToolbarLayoutManager::setDockingAreaOffsets( const ::Rectangle& rOffsets )
{
SolarMutexGuard g;
- m_aDockingAreaOffsets = aOffsets;
+ m_aDockingAreaOffsets = rOffsets;
m_bLayoutDirty = true;
}
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
index a4aca8fdac00..50433e0ad8c6 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
@@ -84,7 +84,7 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& xPersistentWindowState );
void setParentWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& xParentWindow );
- void setDockingAreaOffsets( const ::Rectangle aOffsets );
+ void setDockingAreaOffsets(const ::Rectangle& rOffsets);
void resetDockingArea();
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 0cfc9099f467..85ddc81a418c 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -109,9 +109,9 @@ static const sal_uInt16 STARTID_CUSTOMIZE_POPUPMENU = 1000;
class ImageOrientationListener : public svt::FrameStatusListener
{
public:
- ImageOrientationListener( const Reference< XStatusListener > rReceiver,
- const Reference< XComponentContext > rxContext,
- const Reference< XFrame > rFrame );
+ ImageOrientationListener( const Reference< XStatusListener >& rReceiver,
+ const Reference< XComponentContext >& rxContext,
+ const Reference< XFrame >& rFrame );
virtual ~ImageOrientationListener();
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -121,9 +121,9 @@ class ImageOrientationListener : public svt::FrameStatusListener
};
ImageOrientationListener::ImageOrientationListener(
- const Reference< XStatusListener > rReceiver,
- const Reference< XComponentContext > rxContext,
- const Reference< XFrame > rFrame ) :
+ const Reference< XStatusListener >& rReceiver,
+ const Reference< XComponentContext >& rxContext,
+ const Reference< XFrame >& rFrame ) :
FrameStatusListener( rxContext, rFrame ),
m_xReceiver( rReceiver )
{