Change according to review
This commit is contained in:
@@ -221,16 +221,16 @@ bool DynamicProfileRules::loadRules()
|
|||||||
rule.profilepath = kf.get_string (group, "profilepath");
|
rule.profilepath = kf.get_string (group, "profilepath");
|
||||||
#if defined (WIN32)
|
#if defined (WIN32)
|
||||||
// if this is Windows, replace any "/" in the path with "\\"
|
// if this is Windows, replace any "/" in the path with "\\"
|
||||||
int pos = rule.profilepath.find("/");
|
size_t pos = rule.profilepath.find("/");
|
||||||
while (pos != -1) {
|
while (pos != Glib::ustring::npos) {
|
||||||
rule.profilepath.replace(pos, 1, "\\");
|
rule.profilepath.replace(pos, 1, "\\");
|
||||||
pos = rule.profilepath.find("/", pos);
|
pos = rule.profilepath.find("/", pos);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if !defined (WIN32)
|
#if !defined (WIN32)
|
||||||
// if this is not Windows, replace any "\\" in the path with "/"
|
// if this is not Windows, replace any "\\" in the path with "/"
|
||||||
int pos = rule.profilepath.find("\\");
|
size_t pos = rule.profilepath.find("\\");
|
||||||
while (pos != -1) {
|
while (pos != Glib::ustring::npos) {
|
||||||
rule.profilepath.replace(pos, 1, "/");
|
rule.profilepath.replace(pos, 1, "/");
|
||||||
pos = rule.profilepath.find("\\", pos);
|
pos = rule.profilepath.find("\\", pos);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user