Skip to content

Commit

Permalink
bugfix Qt5 release build
Browse files Browse the repository at this point in the history
Removed unused method in release builds.
  • Loading branch information
silverqx committed Nov 26, 2022
1 parent 4959f7d commit 31814b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/orm/tiny/concerns/hasattributes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,12 @@ namespace Orm::Tiny::Concerns
static void throwIfCanNotCastAttribute(
const QString &key, CastType castType, QMetaTypeDecl metaType,
const QVariant &value, const QString &functionName);
#ifdef TINYORM_DEBUG
/*! Log if the QVariant::convert() for the given attribute failed. */
static void logIfConvertAttributeFailed(
const QString &key, CastType castType, QMetaTypeDecl metaType,
const QString &functionName);
#endif

/*! Return the string name of the given cast type. */
static QString castTypeName(CastType type);
Expand Down Expand Up @@ -1622,6 +1624,7 @@ namespace Orm::Tiny::Concerns
castTypeName(castType), metaType.name(), functionName));
}

#ifdef TINYORM_DEBUG
template<typename Derived, AllRelationsConcept ...AllRelations>
void HasAttributes<Derived, AllRelations...>::logIfConvertAttributeFailed(
const QString &key, const CastType castType, QMetaTypeDef metaType,
Expand All @@ -1639,6 +1642,7 @@ namespace Orm::Tiny::Concerns
TypeUtils::template classPureBasename<Derived>(),
castTypeName(castType), functionName);
}
#endif

template<typename Derived, AllRelationsConcept ...AllRelations>
QString
Expand Down

0 comments on commit 31814b0

Please sign in to comment.