From f890dd8c22cae9e90d55b763f1d896b25975aeab Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Mon, 27 Nov 2023 20:34:50 -0500 Subject: Remove variants from QtConcurrent in main window The std::variants weren't used and were making the code more complex to no advantage. All code that would have benefited from variants has already been moved to QThreads elsewhere --- src/archive/mastodon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/archive/mastodon.cpp') diff --git a/src/archive/mastodon.cpp b/src/archive/mastodon.cpp index 50253c6..781f928 100644 --- a/src/archive/mastodon.cpp +++ b/src/archive/mastodon.cpp @@ -19,7 +19,7 @@ MastodonArchive::MastodonArchive(const QString& filename) : Archive(filename) {} -std::variant MastodonArchive::init() { +MastodonArchive::InitError MastodonArchive::init() { QFile outbox_file(main_filename); if (!outbox_file.open(QIODevice::ReadOnly | QIODevice::Text)) -- cgit v1.2.3-54-g00ecf