[vlc-commits] Win32: cleanups and warnings killing

Jean-Baptiste Kempf git at videolan.org
Tue Jan 24 17:15:44 CET 2012


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 24 17:02:59 2012 +0100| [fecad5ca26c8ac3a163023f4c8da4393bb81c7c7] | committer: Jean-Baptiste Kempf

Win32: cleanups and warnings killing

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=fecad5ca26c8ac3a163023f4c8da4393bb81c7c7
---

 common/win32_fullscreen.cpp |    8 +++-----
 common/win32_fullscreen.h   |    4 ++--
 common/win32_vlcwnd.h       |    2 +-
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index ed0ed9c..9859a89 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -134,7 +134,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
         case WM_CREATE:{
             const int ControlsHeight = 21+3;
             const int ButtonsWidth = ControlsHeight;
-            const int ScrollVOffset = (ControlsHeight-GetSystemMetrics(SM_CXHSCROLL))/2;
 
             int HorizontalOffset = xControlsSpace;
             int ControlWidth = ButtonsWidth;
@@ -319,7 +318,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
             }
 
             const int new_client_width = LOWORD(lParam);
-            const int new_client_height = HIWORD(lParam);
 
             bool isFSBtnVisible =
                 (GetWindowLong(hFSButton, GWL_STYLE) & WS_VISIBLE) != 0;
@@ -553,7 +551,7 @@ void VLCControlsWnd::SetVLCVolumeBySliderPos(int CurPos)
 /////////////////////////////////////
 //VLCControlsWnd event handlers
 
-void VLCControlsWnd::handle_position_changed_event(const libvlc_event_t* event)
+void VLCControlsWnd::handle_position_changed_event(const libvlc_event_t* )
 {
     SyncVideoPosScrollPosWithVideoPos();
 }
@@ -933,8 +931,8 @@ VLCFullScreenWnd* VLCFullScreenWnd::CreateFSWindow(VLCWindowsManager* WM)
 ///////////////////////
 VLCWindowsManager::VLCWindowsManager(HMODULE hModule, const VLCViewResources& rc,
                                      const vlc_player_options* po)
-    :_hModule(hModule), _hWindowedParentWnd(0), _p_md(0), _HolderWnd(0), _FSWnd(0),
-    _b_new_messages_flag(false), Last_WM_MOUSEMOVE_Pos(0), _rc(rc), _po(po)
+    :_rc(rc), _hModule(hModule), _po(po), _hWindowedParentWnd(0), _p_md(0),
+    _HolderWnd(0), _FSWnd(0), _b_new_messages_flag(false), Last_WM_MOUSEMOVE_Pos(0)
 {
     VLCFullScreenWnd::RegisterWndClassName(hModule);
 }
diff --git a/common/win32_fullscreen.h b/common/win32_fullscreen.h
index ea41231..8faf2b9 100644
--- a/common/win32_fullscreen.h
+++ b/common/win32_fullscreen.h
@@ -145,7 +145,7 @@ public:
 protected:
     VLCHolderWnd(HINSTANCE hInstance, VLCWindowsManager* WM)
         : VLCWnd(hInstance), _hMouseHook(NULL), _MouseHookThreadId(0),
-         _wm(WM), _CtrlsWnd(0), _hBgBrush(0) {};
+         _wm(WM), _hBgBrush(0), _CtrlsWnd(0) {};
     bool Create(HWND hWndParent);
 
     virtual void PreRegisterWindowClass(WNDCLASS* wc);
@@ -222,7 +222,7 @@ private:
 
 public:
     //libvlc events arrives from separate thread
-    void OnLibVlcEvent(const libvlc_event_t* event) {};
+    void OnLibVlcEvent(const libvlc_event_t* ) {};
 
 private:
     void NeedHideControls();
diff --git a/common/win32_vlcwnd.h b/common/win32_vlcwnd.h
index 247abe1..4daba9b 100644
--- a/common/win32_vlcwnd.h
+++ b/common/win32_vlcwnd.h
@@ -38,7 +38,7 @@ protected:
                   int x, int y, int nWidth, int nHeight,
                   HWND hWndParent, HMENU hMenu);
 
-    virtual void PreRegisterWindowClass(WNDCLASS* wc) {};
+    virtual void PreRegisterWindowClass(WNDCLASS* ) {};
     virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
         { return DefWindowProc(_hWnd, uMsg, wParam, lParam); };
 



More information about the vlc-commits mailing list