summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2024-09-18 19:01:44 +0300
committerAhmad Samir <a.samirh78@gmail.com>2024-09-20 21:45:27 +0300
commit30f6f1a57e77c6d34981c72ddc865340b8677272 (patch)
tree306c6867f29beae7969ba70b98465e41af145f2b /src/corelib/io/qfsfileengine.cpp
parent6c30a60a42800dd5d732d2c7018d87e8f3a9c6a0 (diff)
QDir: qt_normalizePathSegments: remove a redundant while loop
This loop backtracked multiple '/'s for local URLs, but for such URLs, only the first slash is copied to the output stream; from the first if-block in the do-while loop: if (in[0] == u'/') { *out++ = *in++; while (in < end && in[0] == u'/') { if (isRemote) *out++ = *in++; else ++in; Change-Id: I09b79e3b859ecc7f8c20b2cf9c3ce3c2035668a7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qfsfileengine.cpp')
0 files changed, 0 insertions, 0 deletions