summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@gmx.com>2012-07-14 18:46:58 +0200
committerMatteo Casalin <matteo.casalin@gmx.com>2012-07-21 16:52:15 +0200
commitad6b352bffdba5c45fa0915c7fdf8f5460409fc3 (patch)
tree41a96901c9c87f5474a90597329ffddf4876f0cc /vcl/source/app
parent72ee894e1ede17e0b3300b2da4b2f63bd20961a5 (diff)
Cleanup sound.cxx
Change-Id: I6aeb437a034c8c9e5ab7583d608d098912068f72
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/sound.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/app/sound.cxx b/vcl/source/app/sound.cxx
index 2ffc190cf399..498842c2e7ec 100644
--- a/vcl/source/app/sound.cxx
+++ b/vcl/source/app/sound.cxx
@@ -24,7 +24,6 @@
#include <salframe.hxx>
#include <svdata.hxx>
-#include <salinst.hxx>
void Sound::Beep( SoundType eType, Window* pWindow )
{
@@ -32,13 +31,10 @@ void Sound::Beep( SoundType eType, Window* pWindow )
if ( Application::IsHeadlessModeEnabled() )
return;
- if( !pWindow )
- {
- Window* pDefWindow = ImplGetDefaultWindow();
- pDefWindow->ImplGetFrame()->Beep( eType );
- }
- else
- pWindow->ImplGetFrame()->Beep( eType );
+ if ( !pWindow )
+ pWindow = ImplGetDefaultWindow();
+
+ pWindow->ImplGetFrame()->Beep( eType );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */