From 31814b0c21d0a162863840cba62639ea7e856c7a Mon Sep 17 00:00:00 2001 From: silverqx Date: Sat, 26 Nov 2022 17:25:36 +0100 Subject: [PATCH] bugfix Qt5 release build Removed unused method in release builds. --- include/orm/tiny/concerns/hasattributes.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/orm/tiny/concerns/hasattributes.hpp b/include/orm/tiny/concerns/hasattributes.hpp index 330ebb32f..cbbd900fa 100644 --- a/include/orm/tiny/concerns/hasattributes.hpp +++ b/include/orm/tiny/concerns/hasattributes.hpp @@ -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); @@ -1622,6 +1624,7 @@ namespace Orm::Tiny::Concerns castTypeName(castType), metaType.name(), functionName)); } +#ifdef TINYORM_DEBUG template void HasAttributes::logIfConvertAttributeFailed( const QString &key, const CastType castType, QMetaTypeDef metaType, @@ -1639,6 +1642,7 @@ namespace Orm::Tiny::Concerns TypeUtils::template classPureBasename(), castTypeName(castType), functionName); } +#endif template QString