SmartPtr: fixed incorrect ifdefs around ical unref
The unref methods for ical where unnecessarily inside an "ifdef HAVE_GLIB". This causes problems when compiling code with a non-SyncEvolution config.h.
This commit is contained in:
parent
6bfdec95a5
commit
7b94f51d0c
1 changed files with 3 additions and 3 deletions
|
@ -70,12 +70,12 @@ class Unref {
|
|||
}
|
||||
#ifdef ENABLE_EBOOK
|
||||
static void unref(EBookQuery *pointer) { e_book_query_unref(pointer); }
|
||||
#endif
|
||||
#endif // ENABLE_EBOOK
|
||||
#endif // HAVE_GLIB
|
||||
#ifdef ENABLE_ICAL
|
||||
static void unref(icalcomponent *pointer) { icalcomponent_free(pointer); }
|
||||
static void unref(icaltimezone *pointer) { icaltimezone_free(pointer, 1); }
|
||||
#endif
|
||||
#endif
|
||||
#endif // ENABLE_ICAL
|
||||
};
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
|
|
Loading…
Reference in a new issue