Use QString::fromStdString() instead of c_str()

This commit is contained in:
Myned
2020-06-09 07:10:30 -04:00
parent e693794549
commit 8e4a8b7e9d
3 changed files with 12 additions and 10 deletions

View File

@@ -274,7 +274,7 @@ bool isFullscreen(std::string &title)
bool equals = (title == name);
// True if switch matches window
bool matches = QString::fromStdString(name).contains(
QRegularExpression(title.c_str()));
QRegularExpression(QString::fromStdString(title)));
// If found, check if switch is fullscreen
if (equals || matches) {