Skip to content

Commit

Permalink
Reinstate explicit template instantiations but only for MSVC (refs #4…
Browse files Browse the repository at this point in the history
…4301)

This reverts commit a499a30 which
reverted f616be2
  • Loading branch information
jef-n committed Jul 23, 2021
1 parent 6964eb2 commit b031910
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -10,6 +10,7 @@




class QgsSettingsRegistryCore : QgsSettingsRegistry
{
%Docstring(signature="appended")
Expand Down
9 changes: 9 additions & 0 deletions src/core/settings/qgssettingsregistrycore.h
Expand Up @@ -27,6 +27,15 @@
#include "qgsgeometry.h"
#include "qgsmaplayerproxymodel.h"

#ifdef _MSC_VER
template class CORE_EXPORT QgsSettingsEntryEnumFlag<QgsSnappingConfig::SnappingTypes> SIP_SKIP;
template class CORE_EXPORT QgsSettingsEntryEnumFlag<QgsTolerance::UnitType> SIP_SKIP;
template class CORE_EXPORT QgsSettingsEntryEnumFlag<QgsGeometry::JoinStyle> SIP_SKIP;
template class CORE_EXPORT QgsSettingsEntryEnumFlag<QgsGeometry::EndCapStyle> SIP_SKIP;
template class CORE_EXPORT QgsSettingsEntryEnumFlag<QgsUnitTypes::LayoutUnit> SIP_SKIP;
template class CORE_EXPORT QgsSettingsEntryEnumFlag< class QFlags<enum QgsMapLayerProxyModel::Filter> > SIP_SKIP;
#endif

/**
* \ingroup core
* \class QgsSettingsRegistryCore
Expand Down

0 comments on commit b031910

Please sign in to comment.