mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Change parseBool() to return optional bool value
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user