Fix shady indentation
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Mon, 19 Oct 2009 19:33:04 +0000 (15:33 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 19 Oct 2009 20:52:56 +0000 (16:52 -0400)
What are you trying to hide?

Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
lttv/modules/text/textFilter.c

index 28b5c8ee9e7933b92986a90891426d699ff2a756..73947b3f33c07b90d9a246401479e01aabd9d885 100644 (file)
@@ -83,16 +83,15 @@ void filter_analyze_file(void *hook_data) {
 
   g_file_get_contents(a_file_name,&a_file_content,NULL,NULL);
   
-
-  if(((GString*)*(value.v_pointer))->len != 0)
-      g_string_append_c((GString*)*(value.v_pointer),'&');
-     g_string_append_c((GString*)*(value.v_pointer),'(');
-    g_string_append((GString*)*(value.v_pointer),a_file_content);
-    g_string_append_c((GString*)*(value.v_pointer),')');
-  
   retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
     LTTV_POINTER, &value);
   g_assert(retval);
+
+  if (((GString*)*(value.v_pointer))->len != 0)
+    g_string_append_c((GString*)*(value.v_pointer),'&');
+  g_string_append_c((GString*)*(value.v_pointer),'(');
+  g_string_append((GString*)*(value.v_pointer),a_file_content);
+  g_string_append_c((GString*)*(value.v_pointer),')');
 }
 
 /**
@@ -111,16 +110,15 @@ void filter_analyze_string(void *hook_data) {
         *      and/or command line string.  From these sources, an 
         *      option string is rebuilded and sent to the filter core
         */
-
-  if(((GString*)*(value.v_pointer))->len != 0)
-      g_string_append_c((GString*)*(value.v_pointer),'&');
-    g_string_append_c((GString*)*(value.v_pointer),'(');
-    g_string_append((GString*)*(value.v_pointer),a_string);
-    g_string_append_c((GString*)*(value.v_pointer),')');
-
   retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
     LTTV_POINTER, &value);
   g_assert(retval);
+
+  if (((GString*)*(value.v_pointer))->len != 0)
+    g_string_append_c((GString*)*(value.v_pointer),'&');
+  g_string_append_c((GString*)*(value.v_pointer),'(');
+  g_string_append((GString*)*(value.v_pointer),a_string);
+  g_string_append_c((GString*)*(value.v_pointer),')');
 }
 
 /**
This page took 0.025485 seconds and 4 git commands to generate.