Static analyzer fixes:

Removes unused code in OS.
Fixes return types.
Fixes few typos.
This commit is contained in:
bruvzg committed 2020-12-09 10:17:53 +02:00
1 parent 90bdba576a
commit 644f739660
27 files changed
+25 -85

No files matched your search

+1 -1
View File
@@ -288,7 +288,7 @@ void NodePath::simplify() {
if (data->path[i].operator String() == ".") {
data->path.remove(i);
i--;
} else if (data->path[i].operator String() == ".." && i > 0 && data->path[i - 1].operator String() != "." && data->path[i - 1].operator String() != "..") {
} else if (i > 0 && data->path[i].operator String() == ".." && data->path[i - 1].operator String() != "." && data->path[i - 1].operator String() != "..") {
//remove both
data->path.remove(i - 1);
data->path.remove(i - 1);