make shellQuote() nicer
- unify unix and windows paths - on windows: - we don't need to care for trailing backslashes, as we never append directly to quoted strings - simplify, as this doesn't need to be fast. unfortunately, it's impossible to use ret.replace(QRegExp(QLatin1String("(\\\\*)$")), QLatin1String("\"\\1")); as that matches foo\ twice (once one backslash and once an empty string).
Showing
- src/shared/proparser/ioutils.cpp 36 additions, 91 deletionssrc/shared/proparser/ioutils.cpp
- tests/auto/auto.pro 1 addition, 0 deletionstests/auto/auto.pro
- tests/auto/ioutils/ioutils.pro 13 additions, 0 deletionstests/auto/ioutils/ioutils.pro
- tests/auto/ioutils/tst_ioutils.cpp 83 additions, 0 deletionstests/auto/ioutils/tst_ioutils.cpp
Loading
Please register or sign in to comment