mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-08 01:29:23 -05:00
fixed clang-tidy/clazy warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user