1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Quiet a bunch of 'unreferenced formal parameter' warnings on Windows.

The remaining ones are 'formal parameter's referenced by other platforms.
This commit is contained in:
martynshaw99 2013-09-25 22:57:54 +00:00
parent 9a75557b89
commit 4f5de6d5e3
10 changed files with 53 additions and 53 deletions

View File

@ -839,7 +839,7 @@ bool FFmpegLibs::ValidLibsLoaded()
return mLibsLoaded; return mLibsLoaded;
} }
bool FFmpegLibs::InitLibs(wxString libpath_format, bool showerr) bool FFmpegLibs::InitLibs(wxString libpath_format, bool WXUNUSED(showerr))
{ {
#if !defined(DISABLE_DYNAMIC_LOADING_FFMPEG) #if !defined(DISABLE_DYNAMIC_LOADING_FFMPEG)
FreeLibs(); FreeLibs();

View File

@ -1019,7 +1019,7 @@ void TrackArtist::DrawMinMaxRMS(wxDC &dc, const wxRect &r, const double env[],
void TrackArtist::DrawMinMaxRMS(wxDC &dc, const wxRect &r, const double env[], void TrackArtist::DrawMinMaxRMS(wxDC &dc, const wxRect &r, const double env[],
float zoomMin, float zoomMax, bool dB, float zoomMin, float zoomMax, bool dB,
const float min[], const float max[], const float rms[], const float min[], const float max[], const float rms[],
const int bl[], bool showProgress, bool muted) const int bl[], bool WXUNUSED(showProgress), bool muted)
#endif #endif
{ {
// Display a line representing the // Display a line representing the

View File

@ -362,7 +362,7 @@ BEGIN_EVENT_TABLE(TrackPanel, wxWindow)
END_EVENT_TABLE() END_EVENT_TABLE()
/// Makes a cursor from an XPM, uses CursorId as a fallback. /// Makes a cursor from an XPM, uses CursorId as a fallback.
static wxCursor * MakeCursor( int CursorId, const char * pXpm[36], int HotX, int HotY ) static wxCursor * MakeCursor( int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY )
{ {
wxCursor * pCursor; wxCursor * pCursor;

View File

@ -218,7 +218,7 @@ wxAccStatus TrackPanelAx::GetChildCount( int* childCount )
// The retrieved string describes the action that is performed on an object, // The retrieved string describes the action that is performed on an object,
// not what the object does as a result. For example, a toolbar button that prints // not what the object does as a result. For example, a toolbar button that prints
// a document has a default action of "Press" rather than "Prints the current document." // a document has a default action of "Press" rather than "Prints the current document."
wxAccStatus TrackPanelAx::GetDefaultAction( int childId, wxString *actionName ) wxAccStatus TrackPanelAx::GetDefaultAction( int WXUNUSED(childId), wxString *actionName )
{ {
actionName->Clear(); actionName->Clear();
@ -226,7 +226,7 @@ wxAccStatus TrackPanelAx::GetDefaultAction( int childId, wxString *actionName )
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus TrackPanelAx::GetDescription( int childId, wxString *description ) wxAccStatus TrackPanelAx::GetDescription( int WXUNUSED(childId), wxString *description )
{ {
description->Clear(); description->Clear();
@ -234,7 +234,7 @@ wxAccStatus TrackPanelAx::GetDescription( int childId, wxString *description )
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus TrackPanelAx::GetHelpText( int childId, wxString *helpText ) wxAccStatus TrackPanelAx::GetHelpText( int WXUNUSED(childId), wxString *helpText )
{ {
helpText->Clear(); helpText->Clear();
@ -243,7 +243,7 @@ wxAccStatus TrackPanelAx::GetHelpText( int childId, wxString *helpText )
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus TrackPanelAx::GetKeyboardShortcut( int childId, wxString *shortcut ) wxAccStatus TrackPanelAx::GetKeyboardShortcut( int WXUNUSED(childId), wxString *shortcut )
{ {
shortcut->Clear(); shortcut->Clear();
@ -377,7 +377,7 @@ wxAccStatus TrackPanelAx::GetRole( int childId, wxAccRole* role )
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus TrackPanelAx::GetSelections( wxVariant *selections ) wxAccStatus TrackPanelAx::GetSelections( wxVariant * WXUNUSED(selections) )
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }

View File

@ -3319,7 +3319,7 @@ wxAccStatus SliderAx::GetChildCount(int* childCount)
// The retrieved string describes the action that is performed on an object, // The retrieved string describes the action that is performed on an object,
// not what the object does as a result. For example, a toolbar button that prints // not what the object does as a result. For example, a toolbar button that prints
// a document has a default action of "Press" rather than "Prints the current document." // a document has a default action of "Press" rather than "Prints the current document."
wxAccStatus SliderAx::GetDefaultAction( int childId, wxString *actionName ) wxAccStatus SliderAx::GetDefaultAction( int WXUNUSED(childId), wxString *actionName )
{ {
actionName->Clear(); actionName->Clear();
@ -3327,7 +3327,7 @@ wxAccStatus SliderAx::GetDefaultAction( int childId, wxString *actionName )
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus SliderAx::GetDescription( int childId, wxString *description ) wxAccStatus SliderAx::GetDescription( int WXUNUSED(childId), wxString *description )
{ {
description->Clear(); description->Clear();
@ -3347,7 +3347,7 @@ wxAccStatus SliderAx::GetFocus(int* childId, wxAccessible** child)
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus SliderAx::GetHelpText( int childId, wxString *helpText ) wxAccStatus SliderAx::GetHelpText( int WXUNUSED(childId), wxString *helpText )
{ {
helpText->Clear(); helpText->Clear();
@ -3356,7 +3356,7 @@ wxAccStatus SliderAx::GetHelpText( int childId, wxString *helpText )
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus SliderAx::GetKeyboardShortcut( int childId, wxString *shortcut ) wxAccStatus SliderAx::GetKeyboardShortcut( int WXUNUSED(childId), wxString *shortcut )
{ {
shortcut->Clear(); shortcut->Clear();
@ -3365,7 +3365,7 @@ wxAccStatus SliderAx::GetKeyboardShortcut( int childId, wxString *shortcut )
// Returns the rectangle for this object (id = 0) or a child element (id > 0). // Returns the rectangle for this object (id = 0) or a child element (id > 0).
// rect is in screen coordinates. // rect is in screen coordinates.
wxAccStatus SliderAx::GetLocation( wxRect& rect, int elementId ) wxAccStatus SliderAx::GetLocation( wxRect& rect, int WXUNUSED(elementId) )
{ {
wxSliderBugfix *s = wxDynamicCast( GetWindow(), wxSliderBugfix ); wxSliderBugfix *s = wxDynamicCast( GetWindow(), wxSliderBugfix );
@ -3376,7 +3376,7 @@ wxAccStatus SliderAx::GetLocation( wxRect& rect, int elementId )
} }
// Gets the name of the specified object. // Gets the name of the specified object.
wxAccStatus SliderAx::GetName(int childId, wxString* name) wxAccStatus SliderAx::GetName(int WXUNUSED(childId), wxString* name)
{ {
wxSliderBugfix *s = wxDynamicCast( GetWindow(), wxSliderBugfix ); wxSliderBugfix *s = wxDynamicCast( GetWindow(), wxSliderBugfix );
@ -3415,7 +3415,7 @@ wxAccStatus SliderAx::GetRole(int childId, wxAccRole* role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus SliderAx::GetSelections( wxVariant *selections ) wxAccStatus SliderAx::GetSelections( wxVariant * WXUNUSED(selections) )
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }

View File

@ -432,7 +432,7 @@ AButtonAx::~AButtonAx()
// or > 0 (the action for a child). // or > 0 (the action for a child).
// Return wxACC_NOT_SUPPORTED if there is no default action for this // Return wxACC_NOT_SUPPORTED if there is no default action for this
// window (e.g. an edit control). // window (e.g. an edit control).
wxAccStatus AButtonAx::DoDefaultAction(int childId) wxAccStatus AButtonAx::DoDefaultAction(int WXUNUSED(childId))
{ {
AButton *ab = wxDynamicCast( GetWindow(), AButton ); AButton *ab = wxDynamicCast( GetWindow(), AButton );
@ -476,7 +476,7 @@ wxAccStatus AButtonAx::GetChildCount(int* childCount)
// object, not what the object does as a result. For example, a // object, not what the object does as a result. For example, a
// toolbar button that prints a document has a default action of // toolbar button that prints a document has a default action of
// "Press" rather than "Prints the current document." // "Press" rather than "Prints the current document."
wxAccStatus AButtonAx::GetDefaultAction(int childId, wxString* actionName) wxAccStatus AButtonAx::GetDefaultAction(int WXUNUSED(childId), wxString* actionName)
{ {
*actionName = _( "Press" ); *actionName = _( "Press" );
@ -484,7 +484,7 @@ wxAccStatus AButtonAx::GetDefaultAction(int childId, wxString* actionName)
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus AButtonAx::GetDescription( int childId, wxString *description ) wxAccStatus AButtonAx::GetDescription( int WXUNUSED(childId), wxString *description )
{ {
description->Clear(); description->Clear();
@ -504,7 +504,7 @@ wxAccStatus AButtonAx::GetFocus(int* childId, wxAccessible** child)
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus AButtonAx::GetHelpText( int childId, wxString *helpText ) wxAccStatus AButtonAx::GetHelpText( int WXUNUSED(childId), wxString *helpText )
{ {
#if wxUSE_TOOLTIPS // Not available in wxX11 #if wxUSE_TOOLTIPS // Not available in wxX11
AButton *ab = wxDynamicCast( GetWindow(), AButton ); AButton *ab = wxDynamicCast( GetWindow(), AButton );
@ -525,7 +525,7 @@ wxAccStatus AButtonAx::GetHelpText( int childId, wxString *helpText )
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus AButtonAx::GetKeyboardShortcut( int childId, wxString *shortcut ) wxAccStatus AButtonAx::GetKeyboardShortcut( int WXUNUSED(childId), wxString *shortcut )
{ {
shortcut->Clear(); shortcut->Clear();
@ -534,7 +534,7 @@ wxAccStatus AButtonAx::GetKeyboardShortcut( int childId, wxString *shortcut )
// Returns the rectangle for this object (id = 0) or a child element (id > 0). // Returns the rectangle for this object (id = 0) or a child element (id > 0).
// rect is in screen coordinates. // rect is in screen coordinates.
wxAccStatus AButtonAx::GetLocation( wxRect& rect, int elementId ) wxAccStatus AButtonAx::GetLocation( wxRect& rect, int WXUNUSED(elementId) )
{ {
AButton *ab = wxDynamicCast( GetWindow(), AButton ); AButton *ab = wxDynamicCast( GetWindow(), AButton );
@ -545,7 +545,7 @@ wxAccStatus AButtonAx::GetLocation( wxRect& rect, int elementId )
} }
// Gets the name of the specified object. // Gets the name of the specified object.
wxAccStatus AButtonAx::GetName(int childId, wxString* name) wxAccStatus AButtonAx::GetName(int WXUNUSED(childId), wxString* name)
{ {
AButton *ab = wxDynamicCast( GetWindow(), AButton ); AButton *ab = wxDynamicCast( GetWindow(), AButton );
@ -564,7 +564,7 @@ wxAccStatus AButtonAx::GetName(int childId, wxString* name)
} }
// Returns a role constant. // Returns a role constant.
wxAccStatus AButtonAx::GetRole(int childId, wxAccRole* role) wxAccStatus AButtonAx::GetRole(int WXUNUSED(childId), wxAccRole* role)
{ {
*role = wxROLE_SYSTEM_PUSHBUTTON; *role = wxROLE_SYSTEM_PUSHBUTTON;
@ -579,13 +579,13 @@ wxAccStatus AButtonAx::GetRole(int childId, wxAccRole* role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus AButtonAx::GetSelections( wxVariant *selections ) wxAccStatus AButtonAx::GetSelections( wxVariant * WXUNUSED(selections) )
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }
// Returns a state constant. // Returns a state constant.
wxAccStatus AButtonAx::GetState(int childId, long* state) wxAccStatus AButtonAx::GetState(int WXUNUSED(childId), long* state)
{ {
AButton *ab = wxDynamicCast( GetWindow(), AButton ); AButton *ab = wxDynamicCast( GetWindow(), AButton );
@ -617,7 +617,7 @@ wxAccStatus AButtonAx::GetState(int childId, long* state)
// Returns a localized string representing the value for the object // Returns a localized string representing the value for the object
// or child. // or child.
wxAccStatus AButtonAx::GetValue(int childId, wxString* strValue) wxAccStatus AButtonAx::GetValue(int WXUNUSED(childId), wxString* WXUNUSED(strValue))
{ {
return wxACC_NOT_SUPPORTED; return wxACC_NOT_SUPPORTED;
} }

View File

@ -1649,7 +1649,7 @@ wxAccStatus ASliderAx::GetChildCount(int* childCount)
// The retrieved string describes the action that is performed on an object, // The retrieved string describes the action that is performed on an object,
// not what the object does as a result. For example, a toolbar button that prints // not what the object does as a result. For example, a toolbar button that prints
// a document has a default action of "Press" rather than "Prints the current document." // a document has a default action of "Press" rather than "Prints the current document."
wxAccStatus ASliderAx::GetDefaultAction( int childId, wxString *actionName ) wxAccStatus ASliderAx::GetDefaultAction( int WXUNUSED(childId), wxString *actionName )
{ {
actionName->Clear(); actionName->Clear();
@ -1657,7 +1657,7 @@ wxAccStatus ASliderAx::GetDefaultAction( int childId, wxString *actionName )
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus ASliderAx::GetDescription( int childId, wxString *description ) wxAccStatus ASliderAx::GetDescription( int WXUNUSED(childId), wxString *description )
{ {
description->Clear(); description->Clear();
@ -1677,7 +1677,7 @@ wxAccStatus ASliderAx::GetFocus(int* childId, wxAccessible** child)
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus ASliderAx::GetHelpText( int childId, wxString *helpText ) wxAccStatus ASliderAx::GetHelpText( int WXUNUSED(childId), wxString *helpText )
{ {
helpText->Clear(); helpText->Clear();
@ -1686,7 +1686,7 @@ wxAccStatus ASliderAx::GetHelpText( int childId, wxString *helpText )
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus ASliderAx::GetKeyboardShortcut( int childId, wxString *shortcut ) wxAccStatus ASliderAx::GetKeyboardShortcut( int WXUNUSED(childId), wxString *shortcut )
{ {
shortcut->Clear(); shortcut->Clear();
@ -1695,7 +1695,7 @@ wxAccStatus ASliderAx::GetKeyboardShortcut( int childId, wxString *shortcut )
// Returns the rectangle for this object (id = 0) or a child element (id > 0). // Returns the rectangle for this object (id = 0) or a child element (id > 0).
// rect is in screen coordinates. // rect is in screen coordinates.
wxAccStatus ASliderAx::GetLocation( wxRect& rect, int elementId ) wxAccStatus ASliderAx::GetLocation( wxRect& rect, int WXUNUSED(elementId) )
{ {
ASlider *as = wxDynamicCast( GetWindow(), ASlider ); ASlider *as = wxDynamicCast( GetWindow(), ASlider );
@ -1706,7 +1706,7 @@ wxAccStatus ASliderAx::GetLocation( wxRect& rect, int elementId )
} }
// Gets the name of the specified object. // Gets the name of the specified object.
wxAccStatus ASliderAx::GetName(int childId, wxString* name) wxAccStatus ASliderAx::GetName(int WXUNUSED(childId), wxString* name)
{ {
ASlider *as = wxDynamicCast( GetWindow(), ASlider ); ASlider *as = wxDynamicCast( GetWindow(), ASlider );
@ -1745,7 +1745,7 @@ wxAccStatus ASliderAx::GetRole(int childId, wxAccRole* role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus ASliderAx::GetSelections( wxVariant *selections ) wxAccStatus ASliderAx::GetSelections( wxVariant * WXUNUSED(selections) )
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }

View File

@ -665,7 +665,7 @@ wxAccStatus GridAx::GetChildCount(int *childCount)
// The retrieved string describes the action that is performed on an object, // The retrieved string describes the action that is performed on an object,
// not what the object does as a result. For example, a toolbar button that prints // not what the object does as a result. For example, a toolbar button that prints
// a document has a default action of "Press" rather than "Prints the current document." // a document has a default action of "Press" rather than "Prints the current document."
wxAccStatus GridAx::GetDefaultAction(int childId, wxString *actionName) wxAccStatus GridAx::GetDefaultAction(int WXUNUSED(childId), wxString *actionName)
{ {
actionName->Clear(); actionName->Clear();
@ -673,7 +673,7 @@ wxAccStatus GridAx::GetDefaultAction(int childId, wxString *actionName)
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus GridAx::GetDescription(int childId, wxString *description) wxAccStatus GridAx::GetDescription(int WXUNUSED(childId), wxString *description)
{ {
description->Clear(); description->Clear();
@ -681,7 +681,7 @@ wxAccStatus GridAx::GetDescription(int childId, wxString *description)
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus GridAx::GetHelpText(int childId, wxString *helpText) wxAccStatus GridAx::GetHelpText(int WXUNUSED(childId), wxString *helpText)
{ {
helpText->Clear(); helpText->Clear();
@ -690,7 +690,7 @@ wxAccStatus GridAx::GetHelpText(int childId, wxString *helpText)
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus GridAx::GetKeyboardShortcut(int childId, wxString *shortcut) wxAccStatus GridAx::GetKeyboardShortcut(int WXUNUSED(childId), wxString *shortcut)
{ {
shortcut->Clear(); shortcut->Clear();
@ -763,7 +763,7 @@ wxAccStatus GridAx::GetName(int childId, wxString *name)
return wxACC_OK; return wxACC_OK;
} }
wxAccStatus GridAx::GetParent(wxAccessible **parent) wxAccStatus GridAx::GetParent(wxAccessible ** WXUNUSED(parent))
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }
@ -795,7 +795,7 @@ wxAccStatus GridAx::GetRole(int childId, wxAccRole *role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus GridAx::GetSelections(wxVariant *selections) wxAccStatus GridAx::GetSelections(wxVariant * WXUNUSED(selections))
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }
@ -880,7 +880,7 @@ wxAccStatus GridAx::Select(int childId, wxAccSelectionFlags selectFlags)
// If childId is 0 and child is NULL, no object in // If childId is 0 and child is NULL, no object in
// this subhierarchy has the focus. // this subhierarchy has the focus.
// If this object has the focus, child should be 'this'. // If this object has the focus, child should be 'this'.
wxAccStatus GridAx::GetFocus(int *childId, wxAccessible **child) wxAccStatus GridAx::GetFocus(int * WXUNUSED(childId), wxAccessible **child)
{ {
*child = this; *child = this;

View File

@ -95,7 +95,7 @@ wxAccStatus HtmlWindowAx::GetChildCount(int* childCount)
// object, not what the object does as a result. For example, a // object, not what the object does as a result. For example, a
// toolbar button that prints a document has a default action of // toolbar button that prints a document has a default action of
// "Press" rather than "Prints the current document." // "Press" rather than "Prints the current document."
wxAccStatus HtmlWindowAx::GetDefaultAction(int childId, wxString* actionName) wxAccStatus HtmlWindowAx::GetDefaultAction(int WXUNUSED(childId), wxString* actionName)
{ {
actionName->Clear(); actionName->Clear();
@ -103,7 +103,7 @@ wxAccStatus HtmlWindowAx::GetDefaultAction(int childId, wxString* actionName)
} }
// Returns the description for this object or a child. // Returns the description for this object or a child.
wxAccStatus HtmlWindowAx::GetDescription( int childId, wxString *description ) wxAccStatus HtmlWindowAx::GetDescription( int WXUNUSED(childId), wxString *description )
{ {
description->Clear(); description->Clear();
@ -123,7 +123,7 @@ wxAccStatus HtmlWindowAx::GetFocus(int* childId, wxAccessible** child)
} }
// Returns help text for this object or a child, similar to tooltip text. // Returns help text for this object or a child, similar to tooltip text.
wxAccStatus HtmlWindowAx::GetHelpText( int childId, wxString *helpText ) wxAccStatus HtmlWindowAx::GetHelpText( int WXUNUSED(childId), wxString *helpText )
{ {
helpText->Clear(); helpText->Clear();
@ -132,7 +132,7 @@ wxAccStatus HtmlWindowAx::GetHelpText( int childId, wxString *helpText )
// Returns the keyboard shortcut for this object or child. // Returns the keyboard shortcut for this object or child.
// Return e.g. ALT+K // Return e.g. ALT+K
wxAccStatus HtmlWindowAx::GetKeyboardShortcut( int childId, wxString *shortcut ) wxAccStatus HtmlWindowAx::GetKeyboardShortcut( int WXUNUSED(childId), wxString *shortcut )
{ {
shortcut->Clear(); shortcut->Clear();
@ -141,7 +141,7 @@ wxAccStatus HtmlWindowAx::GetKeyboardShortcut( int childId, wxString *shortcut )
// Returns the rectangle for this object (id = 0) or a child element (id > 0). // Returns the rectangle for this object (id = 0) or a child element (id > 0).
// rect is in screen coordinates. // rect is in screen coordinates.
wxAccStatus HtmlWindowAx::GetLocation( wxRect& rect, int elementId ) wxAccStatus HtmlWindowAx::GetLocation( wxRect& rect, int WXUNUSED(elementId) )
{ {
HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow ); HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow );
@ -152,7 +152,7 @@ wxAccStatus HtmlWindowAx::GetLocation( wxRect& rect, int elementId )
} }
// Gets the name of the specified object. // Gets the name of the specified object.
wxAccStatus HtmlWindowAx::GetName(int childId, wxString* name) wxAccStatus HtmlWindowAx::GetName(int WXUNUSED(childId), wxString* name)
{ {
HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow ); HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow );
@ -166,7 +166,7 @@ wxAccStatus HtmlWindowAx::GetName(int childId, wxString* name)
} }
// Returns a role constant. // Returns a role constant.
wxAccStatus HtmlWindowAx::GetRole(int childId, wxAccRole* role) wxAccStatus HtmlWindowAx::GetRole(int WXUNUSED(childId), wxAccRole* role)
{ {
*role = wxROLE_SYSTEM_STATICTEXT; *role = wxROLE_SYSTEM_STATICTEXT;
@ -181,13 +181,13 @@ wxAccStatus HtmlWindowAx::GetRole(int childId, wxAccRole* role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus HtmlWindowAx::GetSelections( wxVariant *selections ) wxAccStatus HtmlWindowAx::GetSelections( wxVariant * WXUNUSED(selections) )
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }
// Returns a state constant. // Returns a state constant.
wxAccStatus HtmlWindowAx::GetState(int childId, long* state) wxAccStatus HtmlWindowAx::GetState(int WXUNUSED(childId), long* state)
{ {
HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow ); HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow );
@ -200,7 +200,7 @@ wxAccStatus HtmlWindowAx::GetState(int childId, long* state)
// Returns a localized string representing the value for the object // Returns a localized string representing the value for the object
// or child. // or child.
wxAccStatus HtmlWindowAx::GetValue(int childId, wxString* strValue) wxAccStatus HtmlWindowAx::GetValue(int WXUNUSED(childId), wxString* strValue)
{ {
HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow ); HtmlWindow *hw = wxDynamicCast( GetWindow(), HtmlWindow );

View File

@ -1682,13 +1682,13 @@ wxAccStatus TimeTextCtrlAx::GetRole(int WXUNUSED(childId), wxAccRole *role)
// - an integer representing the selected child element, // - an integer representing the selected child element,
// or 0 if this object is selected (GetType() == wxT("long")) // or 0 if this object is selected (GetType() == wxT("long"))
// - a "void*" pointer to a wxAccessible child object // - a "void*" pointer to a wxAccessible child object
wxAccStatus TimeTextCtrlAx::GetSelections(wxVariant *selections) wxAccStatus TimeTextCtrlAx::GetSelections(wxVariant * WXUNUSED(selections))
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }
// Returns a state constant. // Returns a state constant.
wxAccStatus TimeTextCtrlAx::GetState(int childId, long *state) wxAccStatus TimeTextCtrlAx::GetState(int WXUNUSED(childId), long *state)
{ {
*state = wxACC_STATE_SYSTEM_FOCUSABLE; *state = wxACC_STATE_SYSTEM_FOCUSABLE;
*state |= (mCtrl == wxWindow::FindFocus() ? wxACC_STATE_SYSTEM_FOCUSED : 0); *state |= (mCtrl == wxWindow::FindFocus() ? wxACC_STATE_SYSTEM_FOCUSED : 0);
@ -1698,7 +1698,7 @@ wxAccStatus TimeTextCtrlAx::GetState(int childId, long *state)
// Returns a localized string representing the value for the object // Returns a localized string representing the value for the object
// or child. // or child.
wxAccStatus TimeTextCtrlAx::GetValue(int childId, wxString *strValue) wxAccStatus TimeTextCtrlAx::GetValue(int WXUNUSED(childId), wxString * WXUNUSED(strValue))
{ {
return wxACC_NOT_IMPLEMENTED; return wxACC_NOT_IMPLEMENTED;
} }