From 78450975b22a9d3715af1570ee57913d27617c27 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Mon, 15 Nov 2004 07:18:22 +0000 Subject: [PATCH] WXUNUSED warning fixes - unicode compilo fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mediactrl.h | 14 ++++++++------ src/msw/mediactrl.cpp | 3 ++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/wx/mediactrl.h b/include/wx/mediactrl.h index 69acc08e90..fec8e979c5 100644 --- a/include/wx/mediactrl.h +++ b/include/wx/mediactrl.h @@ -178,12 +178,14 @@ public: virtual ~wxMediaBackend(); - virtual bool CreateControl(wxControl* ctrl, wxWindow* parent, - wxWindowID id, - const wxPoint& pos, const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) + virtual bool CreateControl(wxControl* WXUNUSED(ctrl), + wxWindow* WXUNUSED(parent), + wxWindowID WXUNUSED(id), + const wxPoint& WXUNUSED(pos), + const wxSize& WXUNUSED(size), + long WXUNUSED(style), + const wxValidator& WXUNUSED(validator), + const wxString& WXUNUSED(name)) { return false; } virtual bool Play() diff --git a/src/msw/mediactrl.cpp b/src/msw/mediactrl.cpp index 1bde220f0f..287192c158 100644 --- a/src/msw/mediactrl.cpp +++ b/src/msw/mediactrl.cpp @@ -1414,7 +1414,8 @@ bool wxQTMediaBackend::Load(const wxString& fileName) short movieResFile; FSSpec sfFile; - if (NativePathNameToFSSpec ((char*) fileName.mb_str(), &sfFile, 0) != noErr) + if (NativePathNameToFSSpec ((char*) (const char*) fileName.mb_str(), + &sfFile, 0) != noErr) return false; if (OpenMovieFile (&sfFile, &movieResFile, fsRdPerm) != noErr) -- 2.47.2