summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorIbrahn Sahir <ibrahn.sahir@gmail.com>2018-08-07 03:22:50 +0100
committerIbrahn Sahir <ibrahn.sahir@gmail.com>2018-08-07 03:30:14 +0100
commit62f0dd9d57b2409206838bee240f30643852f1f0 (patch)
tree7fadc94b27894948200531c8d004da601639b1b7 /core
parent80a8636aa3739822b1ebbbad39f932a176ec158d (diff)
removed some surplus null appends that got typoed in 0e29f7974b59e4440cf02e1388fb9d8ab2b5c5fd
A couple of null appends got typoed to append a '0' character instead. Removed them here since String already takes care of the null terminator for us.
Diffstat (limited to 'core')
-rw-r--r--core/os/file_access.cpp1
-rw-r--r--core/ustring.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp
index 3eac4428da..59f07c03e7 100644
--- a/core/os/file_access.cpp
+++ b/core/os/file_access.cpp
@@ -270,7 +270,6 @@ String FileAccess::get_token() const {
c = get_8();
}
- token += '0';
return String::utf8(token.get_data());
}
diff --git a/core/ustring.cpp b/core/ustring.cpp
index 84613610a9..96d142d85b 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -3881,8 +3881,6 @@ String String::percent_decode() const {
pe += c;
}
- pe += '0';
-
return String::utf8(pe.ptr());
}