refactor: remove use of raw nonstd:: (#6690)
Reviewed-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
@@ -93,9 +93,10 @@ void registerNmManifest([[maybe_unused]] const Paths &paths,
|
||||
|
||||
namespace chatterino::nm::detail {
|
||||
|
||||
nonstd::expected<void, WriteManifestError> writeManifestTo(
|
||||
QString directory, const QString &nmDirectory, const QString &filename,
|
||||
const QJsonDocument &json)
|
||||
Expected<void, WriteManifestError> writeManifestTo(QString directory,
|
||||
const QString &nmDirectory,
|
||||
const QString &filename,
|
||||
const QJsonDocument &json)
|
||||
{
|
||||
if (directory.startsWith('~'))
|
||||
{
|
||||
|
||||
@@ -16,9 +16,10 @@ enum class WriteManifestError : std::uint8_t {
|
||||
FailedToCreateFile,
|
||||
};
|
||||
|
||||
nonstd::expected<void, WriteManifestError> writeManifestTo(
|
||||
QString directory, const QString &nmDirectory, const QString &filename,
|
||||
const QJsonDocument &json);
|
||||
Expected<void, WriteManifestError> writeManifestTo(QString directory,
|
||||
const QString &nmDirectory,
|
||||
const QString &filename,
|
||||
const QJsonDocument &json);
|
||||
|
||||
} // namespace chatterino::nm::detail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user