mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Change parseBool() to return optional bool value
This commit is contained in:
parent
4429a16ca8
commit
d0cac421bb
6 changed files with 24 additions and 19 deletions
|
@ -29,6 +29,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <QChar>
|
||||
#include <QMetaEnum>
|
||||
#include <QString>
|
||||
|
@ -64,7 +66,7 @@ namespace Utils::String
|
|||
return str;
|
||||
}
|
||||
|
||||
bool parseBool(const QString &string, bool defaultValue);
|
||||
std::optional<bool> parseBool(const QString &string);
|
||||
|
||||
QString join(const QVector<QStringRef> &strings, const QString &separator);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue