File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,16 @@ void QgsSnappingConfig::reset()
129
129
{
130
130
// get defaults values. They are both used for standard and advanced configuration (per layer)
131
131
bool enabled = QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_advanced_snap_enabled" ), true ).toBool ();
132
- SnappingMode mode = ( SnappingMode ) QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snap_mode" ), ( int ) AllLayers ).toInt ();
133
- if ( mMode == 0 )
132
+ SnappingMode mode = static_cast <SnappingMode>( QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snap_mode" ), AllLayers ).toInt () );
133
+ if ( mode == 0 )
134
134
{
135
135
// backward compatibility with QGIS 2.x
136
136
// could be removed in 3.4+
137
- mMode = AllLayers;
137
+ mode = AllLayers;
138
138
}
139
- SnappingType type = ( SnappingType ) QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snap_type" ), ( int ) Vertex ).toInt ();
139
+ SnappingType type = static_cast <SnappingType>( QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snap_type" ), Vertex ).toInt () );
140
140
double tolerance = QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snapping_tolerance" ), 0 ).toDouble ();
141
- QgsTolerance::UnitType units = ( QgsTolerance::UnitType ) QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snapping_tolerance_unit" ), ( int ) QgsTolerance::ProjectUnits ).toInt ();
141
+ QgsTolerance::UnitType units = static_cast < QgsTolerance::UnitType>( QSettings ().value ( QStringLiteral ( " /qgis/digitizing/default_snapping_tolerance_unit" ), QgsTolerance::ProjectUnits ).toInt () );
142
142
143
143
// assign main (standard) config
144
144
mEnabled = enabled;
You can’t perform that action at this time.
0 commit comments