Clean up three sets of warnings:
* Ensure all switches have a default when working with enums. * Match defined new[] calls with delete[] calls. * Respect variable initialization order.
This commit is contained in:
@@ -397,6 +397,8 @@ RString NoteSkinManager::GetPath( const RString &sButtonName, const RString &sEl
|
||||
RageException::Throw("%s", message.c_str());
|
||||
case Dialog::ignore:
|
||||
return "";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -439,6 +441,8 @@ RString NoteSkinManager::GetPath( const RString &sButtonName, const RString &sEl
|
||||
RageException::Throw("%s", message.c_str());
|
||||
case Dialog::ignore:
|
||||
return "";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user