[gnome-builder/wip/libide: 134/237] libide: add autoptr cleanup funcs



commit 0a577a9139c609e3d41475d2c1556135df3d75dc
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 11 23:34:56 2015 -0800

    libide: add autoptr cleanup funcs

 libide/ide-diagnostic.h  |    2 ++
 libide/ide-diagnostics.h |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-diagnostic.h b/libide/ide-diagnostic.h
index 42b6910..8a3b5d6 100644
--- a/libide/ide-diagnostic.h
+++ b/libide/ide-diagnostic.h
@@ -39,6 +39,8 @@ IdeDiagnostic         *ide_diagnostic_ref          (IdeDiagnostic *self);
 void                   ide_diagnostic_unref        (IdeDiagnostic *self);
 IdeDiagnosticSeverity  ide_diagnostic_get_severity (IdeDiagnostic *self);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeDiagnostic, ide_diagnostic_unref)
+
 G_END_DECLS
 
 #endif /* IDE_DIAGNOSTIC_H */
diff --git a/libide/ide-diagnostics.h b/libide/ide-diagnostics.h
index 94ddb5f..bc5f144 100644
--- a/libide/ide-diagnostics.h
+++ b/libide/ide-diagnostics.h
@@ -34,6 +34,8 @@ IdeDiagnostic  *ide_diagnostics_index    (IdeDiagnostics *self,
 void            ide_diagnostics_merge    (IdeDiagnostics *self,
                                           IdeDiagnostics *other);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeDiagnostics, ide_diagnostics_unref)
+
 G_END_DECLS
 
 #endif /* IDE_DIAGNOSTICS_H */


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