[gnome-builder/wip/libide] libide: add autoptr cleanup funcs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: add autoptr cleanup funcs
- Date: Thu, 12 Feb 2015 07:40:47 +0000 (UTC)
commit 104bff48c8f2892f7b87c4b93bdfff285870a293
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]