mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 07:39:49 -04:00
stratosphere: In-class initialize members
Same thing, less code, less boilerplate.
This commit is contained in:
parent
5b3e8e1c5d
commit
e088a2f414
8 changed files with 42 additions and 54 deletions
|
@ -27,12 +27,11 @@ class MapUtils {
|
|||
|
||||
class AutoCloseMap {
|
||||
private:
|
||||
void *mapped_address;
|
||||
u64 base_address;
|
||||
u64 size;
|
||||
Handle process_handle;
|
||||
void *mapped_address = nullptr;
|
||||
u64 base_address = 0;
|
||||
u64 size = 0;
|
||||
Handle process_handle = 0;
|
||||
public:
|
||||
AutoCloseMap() : mapped_address(0), base_address(0), size(0), process_handle(0) { };
|
||||
~AutoCloseMap() {
|
||||
Close();
|
||||
}
|
||||
|
@ -154,4 +153,4 @@ struct MappedCodeMemory {
|
|||
}
|
||||
*this = (const MappedCodeMemory){0};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue