Use QString literals

This patch covers src/app and src/base folders.
Follow up of ab64ee872b.
This commit is contained in:
Chocobo1 2022-03-04 14:24:14 +08:00
commit f0dd7b7dae
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
38 changed files with 771 additions and 764 deletions

View file

@ -37,12 +37,14 @@
#include <Qt>
#include <QtContainerFwd>
#include "base/global.h"
namespace Utils::String
{
QString wildcardToRegexPattern(const QString &pattern);
template <typename T>
T unquote(const T &str, const QString &quotes = QChar('"'))
T unquote(const T &str, const QString &quotes = u"\""_qs)
{
if (str.length() < 2) return str;