Skip to content

Commit

Permalink
Fix clazy missing-typeinfo warnings
Browse files Browse the repository at this point in the history
From the clazy docs:

"Suggests usage of Q_PRIMITIVE_TYPE or Q_MOVABLE_TYPE in cases where
you're using QList<T> and sizeof(T) > sizeof(void*) or using
QVector<T>, unless they already have a type info classification."
  • Loading branch information
nyalldawson committed Oct 24, 2016
1 parent 3272964 commit 904b004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/pal/util.h
Expand Up @@ -96,4 +96,6 @@ namespace pal

} // namespace

Q_DECLARE_TYPEINFO( pal::Point, Q_PRIMITIVE_TYPE );

#endif
1 change: 1 addition & 0 deletions src/providers/wms/qgswmsprovider.h
Expand Up @@ -684,6 +684,7 @@ class QgsWmsStatistics
static QMap<QString, Stat> sData;
};

Q_DECLARE_TYPEINFO( QgsWmsProvider::TilePosition, Q_PRIMITIVE_TYPE );

#endif

Expand Down

0 comments on commit 904b004

Please sign in to comment.