[Kernel] Use type constant instead of type enum when calling base constructor.

This commit is contained in:
gibbed
2019-07-29 13:53:44 -05:00
parent 0d6bfc1a6b
commit 7c7d80103e
10 changed files with 14 additions and 19 deletions

View File

@@ -20,13 +20,11 @@ namespace xe {
namespace kernel {
XFile::XFile(KernelState* kernel_state, vfs::File* file, bool synchronous)
: XObject(kernel_state, kTypeFile),
file_(file),
is_synchronous_(synchronous) {
: XObject(kernel_state, kType), file_(file), is_synchronous_(synchronous) {
async_event_ = threading::Event::CreateAutoResetEvent(false);
}
XFile::XFile() : XObject(kTypeFile) {
XFile::XFile() : XObject(kType) {
async_event_ = threading::Event::CreateAutoResetEvent(false);
}