mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 07:43:50 +01:00
Cleanup: Fixed lots of trivial MSVC warnings.
This commit is contained in:
@@ -270,7 +270,7 @@ void DevicePrefs::OnHost(wxCommandEvent & e)
|
||||
OnDevice(e);
|
||||
}
|
||||
|
||||
void DevicePrefs::OnDevice(wxCommandEvent & e)
|
||||
void DevicePrefs::OnDevice(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
int ndx = mRecord->GetCurrentSelection();
|
||||
if (ndx == wxNOT_FOUND) {
|
||||
|
||||
@@ -162,7 +162,7 @@ void DirectoriesPrefs::OnChooseTempDir(wxCommandEvent & e)
|
||||
}
|
||||
}
|
||||
|
||||
void DirectoriesPrefs::UpdateFreeSpace(wxCommandEvent & e)
|
||||
void DirectoriesPrefs::UpdateFreeSpace(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString tempDir;
|
||||
wxString label;
|
||||
|
||||
@@ -309,7 +309,7 @@ void ExtImportPrefs::SwapRows (int row1, int row2)
|
||||
}
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnPluginBeginDrag(wxListEvent& event)
|
||||
void ExtImportPrefs::OnPluginBeginDrag(wxListEvent& WXUNUSED(event))
|
||||
{
|
||||
wxDropSource dragSource(this);
|
||||
dragtext2->SetText(wxT(""));
|
||||
@@ -552,7 +552,7 @@ void ExtImportPrefs::AddItemToTable (int index, ExtImportItem *item)
|
||||
RuleTable->AutoSizeColumns ();
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnAddRule(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnAddRule(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
ExtImportItems *items = wxGetApp().mImporter->GetImportItems();
|
||||
ExtImportItem *item = wxGetApp().mImporter->CreateDefaultImportItem();
|
||||
@@ -564,7 +564,7 @@ void ExtImportPrefs::OnAddRule(wxCommandEvent& event)
|
||||
RuleTable->SetFocus();
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnDelRule(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnDelRule(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
if (last_selected < 0)
|
||||
return;
|
||||
@@ -587,12 +587,12 @@ void ExtImportPrefs::OnDelRule(wxCommandEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnRuleMoveUp(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnRuleMoveUp(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
DoOnRuleTableKeyDown (WXK_UP);
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnRuleMoveDown(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnRuleMoveDown(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
DoOnRuleTableKeyDown (WXK_DOWN);
|
||||
}
|
||||
@@ -607,12 +607,12 @@ void ExtImportPrefs::FakeOnPluginKeyDown (int keycode)
|
||||
mFakeKeyEvent = false;
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnFilterMoveUp(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnFilterMoveUp(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
FakeOnPluginKeyDown (WXK_UP);
|
||||
}
|
||||
|
||||
void ExtImportPrefs::OnFilterMoveDown(wxCommandEvent& event)
|
||||
void ExtImportPrefs::OnFilterMoveDown(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
FakeOnPluginKeyDown (WXK_DOWN);
|
||||
}
|
||||
@@ -658,7 +658,7 @@ void ExtImportPrefsDropTarget::SetPrefs (ExtImportPrefs *prefs)
|
||||
mPrefs = prefs;
|
||||
}
|
||||
|
||||
wxDragResult ExtImportPrefsDropTarget::OnData(wxCoord x, wxCoord y,
|
||||
wxDragResult ExtImportPrefsDropTarget::OnData(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
|
||||
wxDragResult def)
|
||||
{
|
||||
return def;
|
||||
@@ -721,7 +721,7 @@ wxDragResult ExtImportPrefsDropTarget::OnEnter(wxCoord x, wxCoord y,
|
||||
}
|
||||
|
||||
wxDragResult ExtImportPrefsDropTarget::OnDragOver(wxCoord x, wxCoord y,
|
||||
wxDragResult def)
|
||||
wxDragResult WXUNUSED(def))
|
||||
{
|
||||
if (mPrefs == NULL)
|
||||
return wxDragNone;
|
||||
|
||||
@@ -275,7 +275,7 @@ void KeyConfigPrefs::RepopulateBindingsList()
|
||||
// mList->SortItems(SortCallback, (long) &mNames);
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnImport(wxCommandEvent & e)
|
||||
void KeyConfigPrefs::OnImport(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString file = wxT("Audacity-keys.xml");
|
||||
wxString path = gPrefs->Read(wxT("/DefaultOpenPath"),
|
||||
@@ -307,7 +307,7 @@ void KeyConfigPrefs::OnImport(wxCommandEvent & e)
|
||||
RepopulateBindingsList();
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnExport(wxCommandEvent & e)
|
||||
void KeyConfigPrefs::OnExport(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString file = wxT("Audacity-keys.xml");
|
||||
wxString path = gPrefs->Read(wxT("/DefaultExportPath"),
|
||||
@@ -347,7 +347,7 @@ void KeyConfigPrefs::OnExport(wxCommandEvent & e)
|
||||
}
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnDefaults(wxCommandEvent & e)
|
||||
void KeyConfigPrefs::OnDefaults(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
for (size_t i = 0; i < mNames.GetCount(); i++) {
|
||||
mManager->SetKeyFromIndex(i,mDefaultKeys[i]);
|
||||
@@ -376,7 +376,7 @@ void KeyConfigPrefs::OnCaptureKeyDown(wxKeyEvent & e)
|
||||
t->SetValue(KeyStringDisplay(KeyEventToKeyString(e)));
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnCaptureChar(wxKeyEvent & e)
|
||||
void KeyConfigPrefs::OnCaptureChar(wxKeyEvent & WXUNUSED(event))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ void KeyConfigPrefs::SetKeyForSelected( const wxString & key )
|
||||
}
|
||||
|
||||
|
||||
void KeyConfigPrefs::OnSet(wxCommandEvent & e)
|
||||
void KeyConfigPrefs::OnSet(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
if ( mCommandSelected >= (int)mNames.GetCount())
|
||||
return;
|
||||
@@ -434,7 +434,7 @@ void KeyConfigPrefs::OnSet(wxCommandEvent & e)
|
||||
SetKeyForSelected( newKey );
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnClear(wxCommandEvent& event)
|
||||
void KeyConfigPrefs::OnClear(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
mKey->Clear();
|
||||
|
||||
@@ -444,7 +444,7 @@ void KeyConfigPrefs::OnClear(wxCommandEvent& event)
|
||||
SetKeyForSelected( wxT("") );
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnKeyDown(wxListEvent & e)
|
||||
void KeyConfigPrefs::OnKeyDown(wxListEvent & WXUNUSED(event))
|
||||
{
|
||||
// the code in this function allows the user to seek to the next
|
||||
// command which begins with the letter that is pressed
|
||||
@@ -458,8 +458,8 @@ void KeyConfigPrefs::OnKeyDown(wxListEvent & e)
|
||||
// Windows seems to have this built-in
|
||||
// and does not need the following code
|
||||
return;
|
||||
#endif
|
||||
|
||||
#else
|
||||
// The following code seems to work well on at least some versions of Linux
|
||||
int keycode = e.GetKeyCode();
|
||||
int selected = mList->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
|
||||
@@ -514,9 +514,10 @@ void KeyConfigPrefs::OnKeyDown(wxListEvent & e)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void KeyConfigPrefs::OnCategory(wxCommandEvent & e)
|
||||
void KeyConfigPrefs::OnCategory(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
RepopulateBindingsList();
|
||||
}
|
||||
|
||||
@@ -161,14 +161,14 @@ void LibraryPrefs::SetMP3VersionText(bool prompt)
|
||||
|
||||
/// Opens a file-finder dialog so that the user can
|
||||
/// tell us where the MP3 library is.
|
||||
void LibraryPrefs::OnMP3FindButton(wxCommandEvent & e)
|
||||
void LibraryPrefs::OnMP3FindButton(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
SetMP3VersionText(true);
|
||||
}
|
||||
|
||||
/// Opens a file-finder dialog so that the user can
|
||||
/// tell us where the MP3 library is.
|
||||
void LibraryPrefs::OnMP3DownButton(wxCommandEvent & e)
|
||||
void LibraryPrefs::OnMP3DownButton(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString url = wxT("http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#lame");
|
||||
::OpenInDefaultBrowser(url);
|
||||
@@ -180,7 +180,7 @@ void LibraryPrefs::SetFFmpegVersionText()
|
||||
mFFmpegVersion->SetName(mFFmpegVersion->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
|
||||
}
|
||||
|
||||
void LibraryPrefs::OnFFmpegFindButton(wxCommandEvent & e)
|
||||
void LibraryPrefs::OnFFmpegFindButton(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
#ifdef USE_FFMPEG
|
||||
FFmpegLibs* FFmpegLibsInst = PickFFmpegLibs();
|
||||
@@ -217,7 +217,7 @@ void LibraryPrefs::OnFFmpegFindButton(wxCommandEvent & e)
|
||||
#endif
|
||||
}
|
||||
|
||||
void LibraryPrefs::OnFFmpegDownButton(wxCommandEvent & e)
|
||||
void LibraryPrefs::OnFFmpegDownButton(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wxString url = wxT("http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown");
|
||||
::OpenInDefaultBrowser(url);
|
||||
|
||||
@@ -156,20 +156,20 @@ void ThemePrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
|
||||
/// Load Theme from multiple png files.
|
||||
void ThemePrefs::OnLoadThemeComponents(wxCommandEvent & e)
|
||||
void ThemePrefs::OnLoadThemeComponents(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.LoadComponents();
|
||||
theTheme.ApplyUpdatedImages();
|
||||
}
|
||||
|
||||
/// Save Theme to multiple png files.
|
||||
void ThemePrefs::OnSaveThemeComponents(wxCommandEvent & e)
|
||||
void ThemePrefs::OnSaveThemeComponents(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.SaveComponents();
|
||||
}
|
||||
|
||||
/// Load Theme from single png file.
|
||||
void ThemePrefs::OnLoadThemeCache(wxCommandEvent & e)
|
||||
void ThemePrefs::OnLoadThemeCache(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.ReadImageCache();
|
||||
AColor::ReInit();
|
||||
@@ -177,21 +177,21 @@ void ThemePrefs::OnLoadThemeCache(wxCommandEvent & e)
|
||||
}
|
||||
|
||||
/// Save Theme to single png file.
|
||||
void ThemePrefs::OnSaveThemeCache(wxCommandEvent & e)
|
||||
void ThemePrefs::OnSaveThemeCache(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.CreateImageCache();
|
||||
theTheme.WriteImageMap();// bonus - give them the html version.
|
||||
}
|
||||
|
||||
/// Read Theme from internal storage.
|
||||
void ThemePrefs::OnReadThemeInternal(wxCommandEvent & e)
|
||||
void ThemePrefs::OnReadThemeInternal(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.ReadThemeInternal();
|
||||
theTheme.ApplyUpdatedImages();
|
||||
}
|
||||
|
||||
/// Save Theme as C source code.
|
||||
void ThemePrefs::OnSaveThemeAsCode(wxCommandEvent & e)
|
||||
void ThemePrefs::OnSaveThemeAsCode(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
theTheme.SaveThemeAsCode();
|
||||
theTheme.WriteImageDefs();// bonus - give them the Defs too.
|
||||
|
||||
Reference in New Issue
Block a user