fixed clang-tidy/clazy warnings

This commit is contained in:
silverqx
2022-04-27 08:18:07 +02:00
parent dc7a011de7
commit ae65961d89
4 changed files with 6 additions and 6 deletions
@@ -57,7 +57,7 @@ namespace Commands::Migrations
using StatusRow = std::vector<std::string>;
/*! Get result of the status command (used in auto tests). */
inline static std::vector<StatusRow> status() noexcept;
inline static std::vector<StatusRow> status();
/*! Enable logic for unit testing? */
inline static void setInUnitTests() noexcept;
#endif
@@ -99,7 +99,7 @@ namespace Commands::Migrations
}
#ifdef TINYTOM_TESTS_CODE
std::vector<StatusCommand::StatusRow> StatusCommand::status() noexcept
std::vector<StatusCommand::StatusRow> StatusCommand::status()
{
return m_status;
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace Concerns
public:
/*! Constructor (int param. to avoid interpret it as copy ctor). */
Confirmable(Command &command, int);
Confirmable(Command &command, int /*unused*/);
/*! Virtual destructor. */
inline virtual ~Confirmable() = default;
+1 -1
View File
@@ -28,7 +28,7 @@ namespace Concerns
public:
/*! Constructor (int param. to avoid interpret it as copy ctor). */
PrintsOptions(const Commands::Command &command, int);
PrintsOptions(const Commands::Command &command, int /*unused*/);
/*! Virtual destructor. */
inline virtual ~PrintsOptions() = default;
+2 -2
View File
@@ -36,8 +36,8 @@ namespace Tom
std::shared_ptr<ConnectionResolverInterface> &&resolver,
const std::vector<std::shared_ptr<Migration>> &migrations,
const QCommandLineParser &parser);
/*! Default destructor. */
inline ~Migrator() = default;
/*! Virtual destructor. */
inline ~Migrator() override = default;
/* Main migrate operations */
/*! Migrate options. */