mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Use QString literals
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually. PR #16561.
This commit is contained in:
parent
2c8447853b
commit
ab64ee872b
23 changed files with 104 additions and 108 deletions
|
@ -68,11 +68,6 @@ Path::Path(const std::string &pathStr)
|
|||
{
|
||||
}
|
||||
|
||||
Path::Path(const char pathStr[])
|
||||
: Path(QString::fromLatin1(pathStr))
|
||||
{
|
||||
}
|
||||
|
||||
bool Path::isValid() const
|
||||
{
|
||||
if (isEmpty())
|
||||
|
@ -211,11 +206,6 @@ Path &Path::operator+=(const QString &str)
|
|||
return *this;
|
||||
}
|
||||
|
||||
Path &Path::operator+=(const char str[])
|
||||
{
|
||||
return (*this += QString::fromLatin1(str));
|
||||
}
|
||||
|
||||
Path &Path::operator+=(const std::string &str)
|
||||
{
|
||||
return (*this += QString::fromStdString(str));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue