Skip to content

Commit

Permalink
fixed Clang Tidy and Clazy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed May 3, 2024
1 parent d4a93f8 commit 580df9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/common/include/orm/drivers/sqldatabase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Orm::Drivers
class SqlDatabasePrivate;

/*! Database connection. */
class TINYDRIVERS_EXPORT SqlDatabase : public SqlDatabaseManager
class TINYDRIVERS_EXPORT SqlDatabase : public SqlDatabaseManager // clazy:exclude=rule-of-three
{
// To access the private constructors and d smart pointer (private impl.)
friend SqlDatabaseManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ namespace
return FsUtils::getModuleFileName(handle);
#elif __linux__
return FsUtils::getModuleFileName(
reinterpret_cast<void *>(&SqlDatabase::database));
reinterpret_cast<void *>(&SqlDatabase::database)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
#else
# error Unsupported OS or platform in Orm::Drivers::Utils::FsFsPrivate.
#endif
Expand Down
4 changes: 2 additions & 2 deletions include/orm/support/replacebindings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ namespace Orm::Support

if (simpleBindings)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
simpleBindingsList << std::move(bindingValue);
simpleBindingsList << std::move(bindingValue); // clazy:exclude=reserve-candidates
#else
simpleBindingsList << bindingValue;
simpleBindingsList << bindingValue; // clazy:exclude=reserve-candidates
#endif
}

Expand Down

0 comments on commit 580df9c

Please sign in to comment.