mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
code cleanup from cppcheck
This commit is contained in:
@@ -551,7 +551,7 @@ void updatePathClimbingParts(string &path) {
|
||||
if(pos != string::npos && pos != 0) {
|
||||
string orig = path;
|
||||
path.erase(pos,2);
|
||||
pos--;
|
||||
//pos--;
|
||||
|
||||
pos = path.find("/./");
|
||||
if(pos != string::npos && pos != 0) {
|
||||
@@ -564,7 +564,7 @@ void updatePathClimbingParts(string &path) {
|
||||
if(pos != string::npos && pos != 0) {
|
||||
string orig = path;
|
||||
path.erase(pos,2);
|
||||
pos--;
|
||||
//pos--;
|
||||
|
||||
pos = path.find("\\.\\");
|
||||
if(pos != string::npos && pos != 0) {
|
||||
|
Reference in New Issue
Block a user