diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-12 09:25:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 09:25:34 +0100 |
commit | c8a5400654ebc73c9af28d051f367b8eaa75212e (patch) | |
tree | f982f6204781746b460fb1909f90224433df744a /drivers/unix/file_access_unix.cpp | |
parent | ecc588867482c0b32c3896591f55630baba1ef7c (diff) | |
parent | 08f22f1cf0e0d133b7ea763dc3886cf462c6fcb2 (diff) | |
download | redot-engine-c8a5400654ebc73c9af28d051f367b8eaa75212e.tar.gz |
Merge pull request #24241 from Rubonnek/move-to-initializer-list
Moved member variables to initializer list
Diffstat (limited to 'drivers/unix/file_access_unix.cpp')
-rw-r--r-- | drivers/unix/file_access_unix.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp index 3b97b95f7c..10f6be3cbe 100644 --- a/drivers/unix/file_access_unix.cpp +++ b/drivers/unix/file_access_unix.cpp @@ -309,11 +309,10 @@ FileAccess *FileAccessUnix::create_libc() { CloseNotificationFunc FileAccessUnix::close_notification_func = NULL; -FileAccessUnix::FileAccessUnix() { - - f = NULL; - flags = 0; - last_error = OK; +FileAccessUnix::FileAccessUnix() : + f(NULL), + flags(0), + last_error(OK) { } FileAccessUnix::~FileAccessUnix() { |