@@ -238,7 +238,7 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
238238
239239
240240void QgsAppLayerTreeViewMenuProvider::addLegendLayerAction ( QAction* action, QString menu, QString id,
241- QgsMapLayer::LayerType type, bool allLayers )
241+ QgsMapLayer::LayerType type, bool allLayers )
242242{
243243 mLegendLayerActionMap [type].append ( LegendLayerAction ( action, menu, id, allLayers ) );
244244}
@@ -271,11 +271,11 @@ void QgsAppLayerTreeViewMenuProvider::addLegendLayerActionForLayer( QAction* act
271271 = mLegendLayerActionMap .find ( layer->type () );
272272 for ( int i = 0 ; i < it->count (); i++ )
273273 {
274- if ( ( *it )[i].action == action )
275- {
276- ( *it )[i].layers .append ( layer );
277- return ;
278- }
274+ if (( *it )[i].action == action )
275+ {
276+ ( *it )[i].layers .append ( layer );
277+ return ;
278+ }
279279 }
280280}
281281
@@ -288,7 +288,7 @@ void QgsAppLayerTreeViewMenuProvider::removeLegendLayerActionsForLayer( QgsMapLa
288288 = mLegendLayerActionMap .find ( layer->type () );
289289 for ( int i = 0 ; i < it->count (); i++ )
290290 {
291- ( *it )[i].layers .removeAll ( layer );
291+ ( *it )[i].layers .removeAll ( layer );
292292 }
293293}
294294
@@ -297,12 +297,12 @@ QList< LegendLayerAction > QgsAppLayerTreeViewMenuProvider::legendLayerActions(
297297#ifdef QGISDEBUG
298298 if ( mLegendLayerActionMap .contains ( type ) )
299299 {
300- QgsDebugMsg ( QString (" legendLayerActions for layers of type %1:" ).arg ( type ) );
300+ QgsDebugMsg ( QString ( " legendLayerActions for layers of type %1:" ).arg ( type ) );
301301
302- foreach ( LegendLayerAction lyrAction, mLegendLayerActionMap [ type ] )
303- {
304- QgsDebugMsg ( QString (" %1/%2 - %3 layers" ).arg ( lyrAction.menu ).arg ( lyrAction.action ->text () ).arg ( lyrAction.layers .count ()) );
305- }
302+ foreach ( LegendLayerAction lyrAction, mLegendLayerActionMap [ type ] )
303+ {
304+ QgsDebugMsg ( QString ( " %1/%2 - %3 layers" ).arg ( lyrAction.menu ).arg ( lyrAction.action ->text () ).arg ( lyrAction.layers .count () ) );
305+ }
306306 }
307307#endif
308308
0 commit comments