From 904b004de9a9803a00d521ced1394c57d75c4561 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 24 Oct 2016 08:50:46 +1000 Subject: [PATCH] Fix clazy missing-typeinfo warnings From the clazy docs: "Suggests usage of Q_PRIMITIVE_TYPE or Q_MOVABLE_TYPE in cases where you're using QList and sizeof(T) > sizeof(void*) or using QVector, unless they already have a type info classification." --- src/core/pal/util.h | 2 ++ src/providers/wms/qgswmsprovider.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/core/pal/util.h b/src/core/pal/util.h index 2877d0c00bc..e8c0151af16 100644 --- a/src/core/pal/util.h +++ b/src/core/pal/util.h @@ -96,4 +96,6 @@ namespace pal } // namespace +Q_DECLARE_TYPEINFO( pal::Point, Q_PRIMITIVE_TYPE ); + #endif diff --git a/src/providers/wms/qgswmsprovider.h b/src/providers/wms/qgswmsprovider.h index 954277e3caa..5f26c8e55a4 100644 --- a/src/providers/wms/qgswmsprovider.h +++ b/src/providers/wms/qgswmsprovider.h @@ -684,6 +684,7 @@ class QgsWmsStatistics static QMap sData; }; +Q_DECLARE_TYPEINFO( QgsWmsProvider::TilePosition, Q_PRIMITIVE_TYPE ); #endif