summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/unocontrol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-09 14:26:45 +0200
committerNoel Grandin <noel@peralex.com>2016-03-10 10:09:59 +0200
commitc3a3e646c921eb4fd03bd0dd772274bc36cc7510 (patch)
tree9d9dc6dadc43f50716deb615647224788550621a /toolkit/source/controls/unocontrol.cxx
parent70fca3e901e41fa52589eb3f06e6839c4a8582de (diff)
loplugin:constantparam in toolkit
Change-Id: I45d6c37bfe17ef686b50d688698bcc3a7f3cc311
Diffstat (limited to 'toolkit/source/controls/unocontrol.cxx')
-rw-r--r--toolkit/source/controls/unocontrol.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index 856ea4cd2005..84d2fcf3d328 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -156,16 +156,13 @@ OUString UnoControl::GetComponentServiceName()
return OUString();
}
-Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( bool bAcceptExistingPeer )
+Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer()
{
DBG_ASSERT( !mbCreatingCompatiblePeer, "ImplGetCompatiblePeer - rekursive?" );
mbCreatingCompatiblePeer = true;
- Reference< XWindowPeer > xCompatiblePeer;
-
- if ( bAcceptExistingPeer )
- xCompatiblePeer = getPeer();
+ Reference< XWindowPeer > xCompatiblePeer = getPeer();
if ( !xCompatiblePeer.is() )
{
@@ -1005,7 +1002,7 @@ void UnoControl::draw( sal_Int32 x, sal_Int32 y ) throw(RuntimeException, std::e
{
::osl::MutexGuard aGuard( GetMutex() );
- xDrawPeer = ImplGetCompatiblePeer( true );
+ xDrawPeer = ImplGetCompatiblePeer();
bDisposeDrawPeer = xDrawPeer.is() && ( xDrawPeer != getPeer() );
xDrawPeerView.set( xDrawPeer, UNO_QUERY );