avoid warning about unreachable code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2014-04-06 19:27:31 +00:00
parent 8b3e3e594b
commit e003c663fd
2 changed files with 7 additions and 7 deletions

View File

@ -33,14 +33,17 @@
wxString wxStockPreferencesPage::GetName() const
{
wxString name;
switch ( m_kind )
{
case Kind_General:
return _("General");
name = _("General");
break;
case Kind_Advanced:
return _("Advanced");
name = _("Advanced");
break;
}
return wxString(); // silence compiler warning
return name;
}
wxPreferencesEditor::wxPreferencesEditor(const wxString& title)

View File

@ -1470,10 +1470,7 @@ bool wxGStreamerMediaBackend::SetPosition(wxLongLong where)
# endif // GST_VERSION_MAJOR > 0 || GST_VERSION_MINOR >= 10
{
m_llPausedPos = where;
return true;
}
m_llPausedPos = where;
return true;
#endif //== 0.8.0
}