[nautilus] directory: define autoptr cleanup func
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] directory: define autoptr cleanup func
- Date: Thu, 24 Aug 2017 16:42:29 +0000 (UTC)
commit 2f762278b2d4ceac38c780feb3715d8e76f25947
Author: Ernestas Kulik <ernestask gnome org>
Date: Thu Aug 24 16:22:39 2017 +0300
directory: define autoptr cleanup func
If any derived classes have one of their own defined, the compiler will
start spewing warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=786760
src/nautilus-directory.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-directory.h b/src/nautilus-directory.h
index 231384f..9a63aa8 100644
--- a/src/nautilus-directory.h
+++ b/src/nautilus-directory.h
@@ -170,6 +170,8 @@ NautilusDirectory *nautilus_directory_get_for_file (NautilusFile
NautilusDirectory *nautilus_directory_ref (NautilusDirectory *directory);
void nautilus_directory_unref (NautilusDirectory *directory);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (NautilusDirectory, nautilus_directory_unref)
+
/* Access to a URI. */
char * nautilus_directory_get_uri (NautilusDirectory *directory);
GFile * nautilus_directory_get_location (NautilusDirectory *directory);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]