1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Moved member variables to initializer list

This commit is contained in:
Wilson E. Alvarez
2018-12-08 15:07:33 -05:00
parent 41d1dba35f
commit 08f22f1cf0
44 changed files with 609 additions and 694 deletions

View File

@@ -349,9 +349,9 @@ class DirChanger {
String original_dir;
public:
DirChanger(DirAccess *p_da, String p_dir) {
da = p_da;
original_dir = p_da->get_current_dir();
DirChanger(DirAccess *p_da, String p_dir) :
da(p_da),
original_dir(p_da->get_current_dir()) {
p_da->change_dir(p_dir);
}