diff options
author | Matteo Casalin <matteo.casalin@gmx.com> | 2012-07-14 18:46:58 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@gmx.com> | 2012-07-21 16:52:15 +0200 |
commit | ad6b352bffdba5c45fa0915c7fdf8f5460409fc3 (patch) | |
tree | 41a96901c9c87f5474a90597329ffddf4876f0cc /vcl | |
parent | 72ee894e1ede17e0b3300b2da4b2f63bd20961a5 (diff) |
Cleanup sound.cxx
Change-Id: I6aeb437a034c8c9e5ab7583d608d098912068f72
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/sound.cxx | 12 |
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: */ |