diff options
author | Nils ANDRÉ-CHANG <nils.andre.chang@gmail.com> | 2019-06-16 13:31:57 +0100 |
---|---|---|
committer | Nils ANDRÉ-CHANG <nils.andre.chang@gmail.com> | 2019-06-23 13:33:50 +0100 |
commit | d2833d4f4d891b6a0ee32a04f9d32a410b998b93 (patch) | |
tree | 3e1ce371e8edfb4f30571adb1e3c2b0b4a0a3389 /drivers/unix | |
parent | f410e7a8a9b14fd9f5c210afcc9e3519e9ce246d (diff) |
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'drivers/unix')
-rw-r--r-- | drivers/unix/dir_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index e011176806..1c50ff27fc 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -316,7 +316,7 @@ Error DirAccessUnix::change_dir(String p_dir) { // try_dir is the directory we are trying to change into String try_dir = ""; if (p_dir.is_rel_path()) { - String next_dir = current_dir + "/" + p_dir; + String next_dir = current_dir.plus_file(p_dir); next_dir = next_dir.simplify_path(); try_dir = next_dir; } else { |