Skip to content

Commit

Permalink
tidy: Fix "argument looks like it might be swapped" warning in mythco…
Browse files Browse the repository at this point in the history
…recontext.

Change the MythContextPrivate::Init argument names to match those of
MythContextPrivate::Init.

https://clang.llvm.org/extra/clang-tidy/checks/readability-suspicious-call-argument.html
  • Loading branch information
linuxdude42 committed Nov 6, 2021
1 parent 8277bf1 commit 0436404
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/libs/libmyth/mythcontext.cpp
Expand Up @@ -74,7 +74,8 @@ class MythContextPrivate : public QObject
~MythContextPrivate() override;

bool Init (bool gui,
bool prompt, bool noPrompt,
bool promptForBackend,
bool disableAutoDiscovery,
bool ignoreDB);
bool FindDatabase(bool prompt, bool noAutodetect);

Expand Down Expand Up @@ -334,7 +335,7 @@ bool MythContextPrivate::checkPort(QString &host, int port, std::chrono::seconds

bool MythContextPrivate::Init(const bool gui,
const bool promptForBackend,
const bool noPrompt,
const bool disableAutoDiscovery,
const bool ignoreDB)
{
gCoreContext->GetDB()->IgnoreDatabase(ignoreDB);
Expand All @@ -353,7 +354,7 @@ bool MythContextPrivate::Init(const bool gui,

// ---- database connection stuff ----

if (!ignoreDB && !FindDatabase(promptForBackend, noPrompt))
if (!ignoreDB && !FindDatabase(promptForBackend, disableAutoDiscovery))
{
EndTempWindow();
return false;
Expand Down

0 comments on commit 0436404

Please sign in to comment.