[gnome-builder] style cleanup



commit 9437fb3b48b7b6d6e1fe8498f171fba762af34fe
Author: Christian Hergert <christian hergert me>
Date:   Thu May 14 04:24:33 2015 -0700

    style cleanup

 libide/clang/ide-clang-translation-unit.c |    4 +---
 libide/ide-diagnostician.c                |    2 +-
 libide/ide-diagnostics.c                  |    3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libide/clang/ide-clang-translation-unit.c b/libide/clang/ide-clang-translation-unit.c
index 7c7fa42..b248f62 100644
--- a/libide/clang/ide-clang-translation-unit.c
+++ b/libide/clang/ide-clang-translation-unit.c
@@ -438,9 +438,7 @@ ide_clang_translation_unit_get_diagnostics_for_file (IdeClangTranslationUnit *se
 
       ide_project_reader_unlock (project);
 
-      g_hash_table_insert (self->diagnostics,
-                           g_object_ref (file),
-                           _ide_diagnostics_new (diags));
+      g_hash_table_insert (self->diagnostics, g_object_ref (file), _ide_diagnostics_new (diags));
     }
 
   return g_hash_table_lookup (self->diagnostics, file);
diff --git a/libide/ide-diagnostician.c b/libide/ide-diagnostician.c
index 9cb7ce7..f8c6efa 100644
--- a/libide/ide-diagnostician.c
+++ b/libide/ide-diagnostician.c
@@ -126,7 +126,7 @@ ide_diagnostician_diagnose_async (IdeDiagnostician    *self,
 
   task = g_task_new (self, cancellable, callback, user_data);
 
-  if (!self->providers->len)
+  if (self->providers->len == 0)
     {
       g_task_return_pointer (task,
                              _ide_diagnostics_new (NULL),
diff --git a/libide/ide-diagnostics.c b/libide/ide-diagnostics.c
index 1ae4744..e643635 100644
--- a/libide/ide-diagnostics.c
+++ b/libide/ide-diagnostics.c
@@ -19,8 +19,7 @@
 #include "ide-diagnostic.h"
 #include "ide-diagnostics.h"
 
-G_DEFINE_BOXED_TYPE (IdeDiagnostics, ide_diagnostics,
-                     ide_diagnostics_ref, ide_diagnostics_unref)
+G_DEFINE_BOXED_TYPE (IdeDiagnostics, ide_diagnostics, ide_diagnostics_ref, ide_diagnostics_unref)
 
 struct _IdeDiagnostics
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]