Kaynağa Gözat

tools/*: code-style: move break before closing brace

Daniele Bartolini 3 yıl önce
ebeveyn
işleme
645d913cfa
1 değiştirilmiş dosya ile 11 ekleme ve 11 silme
  1. 11 11
      tools/level_editor/level.vala

+ 11 - 11
tools/level_editor/level.vala

@@ -651,8 +651,8 @@ public class Level
 					send_destroy_objects(data);
 					send_destroy_objects(data);
 				else
 				else
 					send_spawn_units(data);
 					send_spawn_units(data);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.DESTROY_UNIT:
 		case (int)ActionType.DESTROY_UNIT:
 			{
 			{
@@ -660,8 +660,8 @@ public class Level
 					send_spawn_units(data);
 					send_spawn_units(data);
 				else
 				else
 					send_destroy_objects(data);
 					send_destroy_objects(data);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.SPAWN_SOUND:
 		case (int)ActionType.SPAWN_SOUND:
 			{
 			{
@@ -669,8 +669,8 @@ public class Level
 					send_destroy_objects(data);
 					send_destroy_objects(data);
 				else
 				else
 					send_spawn_sounds(data);
 					send_spawn_sounds(data);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.DESTROY_SOUND:
 		case (int)ActionType.DESTROY_SOUND:
 			{
 			{
@@ -678,8 +678,8 @@ public class Level
 					send_spawn_sounds(data);
 					send_spawn_sounds(data);
 				else
 				else
 					send_destroy_objects(data);
 					send_destroy_objects(data);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.MOVE_OBJECTS:
 		case (int)ActionType.MOVE_OBJECTS:
 			{
 			{
@@ -726,8 +726,8 @@ public class Level
 				send_move_objects(ids, positions, rotations, scales);
 				send_move_objects(ids, positions, rotations, scales);
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.DUPLICATE_OBJECTS:
 		case (int)ActionType.DUPLICATE_OBJECTS:
 			{
 			{
@@ -736,8 +736,8 @@ public class Level
 					send_destroy_objects(new_ids);
 					send_destroy_objects(new_ids);
 				else
 				else
 					send_spawn_objects(new_ids);
 					send_spawn_objects(new_ids);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.OBJECT_SET_EDITOR_NAME:
 		case (int)ActionType.OBJECT_SET_EDITOR_NAME:
 			object_editor_name_changed(data[0], object_editor_name(data[0]));
 			object_editor_name_changed(data[0], object_editor_name(data[0]));
@@ -761,8 +761,8 @@ public class Level
 				_client.send(DeviceApi.frame());
 				_client.send(DeviceApi.frame());
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.SET_MESH:
 		case (int)ActionType.SET_MESH:
 			{
 			{
@@ -779,8 +779,8 @@ public class Level
 				_client.send(DeviceApi.frame());
 				_client.send(DeviceApi.frame());
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.SET_SPRITE:
 		case (int)ActionType.SET_SPRITE:
 			{
 			{
@@ -800,8 +800,8 @@ public class Level
 				_client.send(DeviceApi.frame());
 				_client.send(DeviceApi.frame());
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.SET_CAMERA:
 		case (int)ActionType.SET_CAMERA:
 			{
 			{
@@ -820,8 +820,8 @@ public class Level
 				_client.send(DeviceApi.frame());
 				_client.send(DeviceApi.frame());
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		case (int)ActionType.SET_COLLIDER:
 		case (int)ActionType.SET_COLLIDER:
 		case (int)ActionType.SET_ACTOR:
 		case (int)ActionType.SET_ACTOR:
@@ -841,8 +841,8 @@ public class Level
 				_client.send(DeviceApi.frame());
 				_client.send(DeviceApi.frame());
 				// FIXME: Hack to force update the properties view
 				// FIXME: Hack to force update the properties view
 				selection_changed(_selection);
 				selection_changed(_selection);
+				break;
 			}
 			}
-			break;
 
 
 		default:
 		default:
 			loge("Unknown undo/redo action: %d".printf(id));
 			loge("Unknown undo/redo action: %d".printf(id));