Remove an extra backslash.

The only backslashes in invalid_dir_chars on Windows should be the one
escaping " and the one escaping \ itself; there's no need for one to
escape | and, in fact, MSVC warns about that.

Change-Id: I7622f5123df7da3049352dc0e86322b11f8c4150
Reviewed-on: https://code.wireshark.org/review/34068
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2019-07-24 02:21:02 -07:00
parent 920f5c3dbf
commit 53fddee43b
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ bool ProfileModel::checkNameValidity(QString name, QString *msg)
#ifdef _WIN32
/* According to https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file */
QString invalid_dir_chars = "<>:\"/\\\|?*";
QString invalid_dir_chars = "<>:\"/\\|?*";
#else
QString invalid_dir_chars = QDir::separator();
#endif