Skip to content

Commit

Permalink
bugfix return value
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 2, 2022
1 parent 0d74b99 commit dacb545
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/orm/tiny/concerns/hasrelationstore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,11 @@ namespace Orm::Tiny::Concerns
HasRelationStore<Derived, AllRelations...>::relationStoreCopyMoveTemplate(
#ifdef TINYORM_DEBUG
const CopyMoveTemplateType type)
#else
const CopyMoveTemplateType /*unused*/)
#endif
{
#ifdef TINYORM_DEBUG
const auto message =
QStringLiteral(
"You can not %1 the %2 model in the middle of any relation store "
Expand All @@ -876,11 +880,9 @@ namespace Orm::Tiny::Concerns
// This should never happen 🤔
qFatal("Bad type in relationStoreCopyMoveTemplate().");
}
#else
const CopyMoveTemplateType /*unused*/)
{
return "";
#endif

return "";
}

/* Static cast this to a child's instance type (CRTP) */
Expand Down

0 comments on commit dacb545

Please sign in to comment.