stratosphere: In-class initialize members

Same thing, less code, less boilerplate.
This commit is contained in:
Léo Lam 2018-07-02 16:26:03 +02:00 committed by SciresM
parent 5b3e8e1c5d
commit e088a2f414
8 changed files with 42 additions and 54 deletions

View file

@ -12,11 +12,11 @@ enum class FspSrvCmd {
class FsMitMService : public IMitMServiceObject {
private:
bool has_initialized;
u64 init_pid;
bool has_initialized = false;
u64 init_pid = 0;
std::shared_ptr<IStorageInterface> romfs_storage;
public:
FsMitMService(Service *s) : IMitMServiceObject(s), has_initialized(false), init_pid(0) {
FsMitMService(Service *s) : IMitMServiceObject(s) {
/* ... */
}