cli: add Invalid mode

Silences compile warning
This commit is contained in:
tobtoht 2022-02-10 13:25:08 +01:00
parent d26d25186d
commit fb36bf54d3
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ class CLI : public QObject
public: public:
enum Mode { enum Mode {
Invalid,
ExportContacts, ExportContacts,
ExportTxHistory, ExportTxHistory,
BruteforcePassword BruteforcePassword

View file

@ -176,6 +176,7 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
return CLI::Mode::ExportTxHistory; return CLI::Mode::ExportTxHistory;
if (bruteforcePassword) if (bruteforcePassword)
return CLI::Mode::BruteforcePassword; return CLI::Mode::BruteforcePassword;
return CLI::Mode::Invalid;
}(); }();
CLI cli{mode, &parser, &app}; CLI cli{mode, &parser, &app};