Skip to content

Commit

Permalink
Removed assert from QxFactoryX::registerFactory. Fixed some compiler …
Browse files Browse the repository at this point in the history
…warnings when building against Qt6.
  • Loading branch information
PepaRokos committed Apr 7, 2023
1 parent 0d837dd commit 975c3b5
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 124 deletions.
2 changes: 1 addition & 1 deletion include/QxConvert/QxConvert_Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct QxConvertHelper_Persistable { };
struct QxConvertHelper_Container { };
struct QxConvertHelper_Enum { };

inline bool checkConvertQVariantToString(const QVariant & v) { return ((v.type() == QVariant::List) || (v.type() == QVariant::Map) || (v.type() == QVariant::Hash) || (v.type() == QVariant::StringList)); }
inline bool checkConvertQVariantToString(const QVariant & v) { return ((v.typeId() == QMetaType::QVariantList) || (v.typeId() == QMetaType::QVariantMap) || (v.typeId() == QMetaType::QVariantHash) || (v.typeId() == QMetaType::QStringList)); }

} // namespace helper

Expand Down

0 comments on commit 975c3b5

Please sign in to comment.