Fix build on CI for Windows
This commit is contained in:
parent
f5724f7e7c
commit
d72e4a1131
1 changed files with 7 additions and 7 deletions
|
@ -153,13 +153,13 @@ int main(int argc, char** argv)
|
|||
//Description: "device name (paired/unpaired)"
|
||||
QString description = deviceIface.name() + " " + statusInfo;
|
||||
//Replace characters
|
||||
description.replace('\\', "\\\\");
|
||||
description.replace('[', "\\[");
|
||||
description.replace(']', "\\]");
|
||||
description.replace('\'', "\\'");
|
||||
description.replace('\"', "\\\"");
|
||||
description.replace('\n', ' ');
|
||||
description.replace('\0', "");
|
||||
description.replace(QChar('\\'), QStringLiteral("\\\\"));
|
||||
description.replace(QChar('['), QStringLiteral("\\["));
|
||||
description.replace(QChar(']'), QStringLiteral("\\]"));
|
||||
description.replace(QChar('\''), QStringLiteral("\\'"));
|
||||
description.replace(QChar('\"'), QStringLiteral("\\\""));
|
||||
description.replace(QChar('\n'), QChar(' '));
|
||||
description.remove(QChar('\0'));
|
||||
|
||||
//Output id and description
|
||||
QTextStream(stdout) << id << '[' << description << ']' << endl;
|
||||
|
|
Loading…
Reference in a new issue