diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-18 08:26:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-15 08:52:23 +0200 |
commit | 52e438caafc3cd24b3759b08c1aaee88e5b67877 (patch) | |
tree | ceb8aef8dd12c2b81caf2138ac194b086d9a77ff /avmedia | |
parent | a0d5f0896ed7f2de8ceffd664ee469a383ce7d53 (diff) |
remove unnecessary parentheses in case labels
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/mediacontrol.cxx | 24 | ||||
-rw-r--r-- | avmedia/source/win/player.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/win/window.cxx | 26 |
3 files changed, 26 insertions, 26 deletions
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx index 8728fdff8b42..78ef5fbf040f 100644 --- a/avmedia/source/framework/mediacontrol.cxx +++ b/avmedia/source/framework/mediacontrol.cxx @@ -464,7 +464,7 @@ IMPL_LINK_TYPED( MediaControl, implSelectHdl, ToolBox*, p, void ) switch( p->GetCurItemId() ) { - case( AVMEDIA_TOOLBOXITEM_OPEN ): + case AVMEDIA_TOOLBOXITEM_OPEN: { OUString aURL; @@ -482,7 +482,7 @@ IMPL_LINK_TYPED( MediaControl, implSelectHdl, ToolBox*, p, void ) } break; - case( AVMEDIA_TOOLBOXITEM_INSERT ): + case AVMEDIA_TOOLBOXITEM_INSERT: { MediaFloater* pFloater = avmedia::getMediaFloater(); @@ -491,7 +491,7 @@ IMPL_LINK_TYPED( MediaControl, implSelectHdl, ToolBox*, p, void ) } break; - case( AVMEDIA_TOOLBOXITEM_PLAY ): + case AVMEDIA_TOOLBOXITEM_PLAY: { aExecItem.setState( MediaState::Play ); @@ -502,26 +502,26 @@ IMPL_LINK_TYPED( MediaControl, implSelectHdl, ToolBox*, p, void ) } break; - case( AVMEDIA_TOOLBOXITEM_PAUSE ): + case AVMEDIA_TOOLBOXITEM_PAUSE: { aExecItem.setState( MediaState::Pause ); } break; - case( AVMEDIA_TOOLBOXITEM_STOP ): + case AVMEDIA_TOOLBOXITEM_STOP: { aExecItem.setState( MediaState::Stop ); aExecItem.setTime( 0.0 ); } break; - case( AVMEDIA_TOOLBOXITEM_MUTE ): + case AVMEDIA_TOOLBOXITEM_MUTE: { aExecItem.setMute( !maMuteToolBox->IsItemChecked( AVMEDIA_TOOLBOXITEM_MUTE ) ); } break; - case( AVMEDIA_TOOLBOXITEM_LOOP ): + case AVMEDIA_TOOLBOXITEM_LOOP: { aExecItem.setLoop( !maPlayToolBox->IsItemChecked( AVMEDIA_TOOLBOXITEM_LOOP ) ); } @@ -550,11 +550,11 @@ IMPL_LINK_TYPED( MediaControl, implZoomSelectHdl, ListBox&, p, void ) switch( p.GetSelectEntryPos() ) { - case( AVMEDIA_ZOOMLEVEL_50 ): eLevel = css::media::ZoomLevel_ZOOM_1_TO_2; break; - case( AVMEDIA_ZOOMLEVEL_100 ): eLevel = css::media::ZoomLevel_ORIGINAL; break; - case( AVMEDIA_ZOOMLEVEL_200 ): eLevel = css::media::ZoomLevel_ZOOM_2_TO_1; break; - case( AVMEDIA_ZOOMLEVEL_FIT ): eLevel = css::media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT; break; - case( AVMEDIA_ZOOMLEVEL_SCALED ): eLevel = css::media::ZoomLevel_FIT_TO_WINDOW; break; + case AVMEDIA_ZOOMLEVEL_50: eLevel = css::media::ZoomLevel_ZOOM_1_TO_2; break; + case AVMEDIA_ZOOMLEVEL_100: eLevel = css::media::ZoomLevel_ORIGINAL; break; + case AVMEDIA_ZOOMLEVEL_200: eLevel = css::media::ZoomLevel_ZOOM_2_TO_1; break; + case AVMEDIA_ZOOMLEVEL_FIT: eLevel = css::media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT; break; + case AVMEDIA_ZOOMLEVEL_SCALED: eLevel = css::media::ZoomLevel_FIT_TO_WINDOW; break; default: eLevel = css::media::ZoomLevel_NOT_AVAILABLE; break; } diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 5bb45e07a1ad..c61305dbc9d5 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -54,7 +54,7 @@ LRESULT CALLBACK MediaPlayerWndProc_2( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM { switch( nMsg ) { - case( WM_GRAPHNOTIFY ): + case WM_GRAPHNOTIFY: pPlayer->processEvent(); break; default: diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx index 4c13f07d265f..64bd7c4fe749 100644 --- a/avmedia/source/win/window.cxx +++ b/avmedia/source/win/window.cxx @@ -68,21 +68,21 @@ LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM n { switch( nMsg ) { - case( WM_SETCURSOR ): + case WM_SETCURSOR: pWindow->updatePointer(); break; - case( WM_GRAPHNOTIFY ): + case WM_GRAPHNOTIFY: pWindow->processGraphEvent(); break; - case( WM_MOUSEMOVE ): - case( WM_LBUTTONDOWN ): - case( WM_MBUTTONDOWN ): - case( WM_RBUTTONDOWN ): - case( WM_LBUTTONUP ): - case( WM_MBUTTONUP ): - case( WM_RBUTTONUP ): + case WM_MOUSEMOVE: + case WM_LBUTTONDOWN: + case WM_MBUTTONDOWN: + case WM_RBUTTONDOWN: + case WM_LBUTTONUP: + case WM_MBUTTONUP: + case WM_RBUTTONUP: { awt::MouseEvent aUNOEvt; POINT aWinPoint; @@ -139,7 +139,7 @@ LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM n } break; - case( WM_SETFOCUS ): + case WM_SETFOCUS: { const awt::FocusEvent aUNOEvt; pWindow->fireSetFocusEvent( aUNOEvt ); @@ -331,9 +331,9 @@ void Window::updatePointer() switch( mnPointerType ) { - case( awt::SystemPointer::CROSS ): pCursorName = IDC_CROSS; break; - case( awt::SystemPointer::MOVE ): pCursorName = IDC_SIZEALL; break; - case( awt::SystemPointer::WAIT ): pCursorName = IDC_WAIT; break; + case awt::SystemPointer::CROSS: pCursorName = IDC_CROSS; break; + case awt::SystemPointer::MOVE: pCursorName = IDC_SIZEALL; break; + case awt::SystemPointer::WAIT: pCursorName = IDC_WAIT; break; default: pCursorName = IDC_ARROW; |