mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Moved member variables from constructor to initialization list
This commit is contained in:
parent
950b205609
commit
6d112a68b6
22 changed files with 196 additions and 215 deletions
|
@ -308,10 +308,9 @@ bool FileAccessPack::file_exists(const String &p_name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file) {
|
||||
|
||||
pf = p_file;
|
||||
f = FileAccess::open(pf.pack, FileAccess::READ);
|
||||
FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file)
|
||||
: pf(p_file),
|
||||
f(FileAccess::open(pf.pack, FileAccess::READ)) {
|
||||
if (!f) {
|
||||
ERR_EXPLAIN("Can't open pack-referenced file: " + String(pf.pack));
|
||||
ERR_FAIL_COND(!f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue