mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-23 17:47:17 +01:00
Use String.length() instead of String.size() in WebServerRequest::setup_url_stack().
This commit is contained in:
parent
38a36b3c70
commit
ea009ff869
@ -285,14 +285,14 @@ void WebServerRequest::setup_url_stack() {
|
|||||||
while ((pos = path.find("/")) != -1) {
|
while ((pos = path.find("/")) != -1) {
|
||||||
st = path.substr(0, pos);
|
st = path.substr(0, pos);
|
||||||
|
|
||||||
if (st.size() != 0) {
|
if (st.length() != 0) {
|
||||||
_path_stack.push_back(st);
|
_path_stack.push_back(st);
|
||||||
}
|
}
|
||||||
|
|
||||||
path.erase(0, pos + 1);
|
path.erase(0, pos + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path.size() != 0) {
|
if (path.length() != 0) {
|
||||||
_path_stack.push_back(path);
|
_path_stack.push_back(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user