@@ -43,11 +43,11 @@ * @class OFList OFList.h ObjFW/OFList.h * * @brief A class which provides easy to use double-linked lists. */ #ifdef OF_HAVE_GENERICS -@interface OFList : +@interface OFList: #else # ifndef DOXYGEN # define ObjectType id # endif @interface OFList: @@ -83,21 +83,21 @@ * @param object The object to append * @return An of_list_object_t, needed to identify the object inside the list. * For example, if you want to remove an object from the list, you need * its of_list_object_t. */ -- (of_list_object_t*)appendObject: (ObjectType)object; +- (of_list_object_t *)appendObject: (ObjectType)object; /*! * @brief Prepends an object to the list. * * @param object The object to prepend * @return An of_list_object_t, needed to identify the object inside the list. * For example, if you want to remove an object from the list, you need * its of_list_object_t. */ -- (of_list_object_t*)prependObject: (ObjectType)object; +- (of_list_object_t *)prependObject: (ObjectType)object; /*! * @brief Inserts an object before another list object. * * @param object The object to insert @@ -105,12 +105,12 @@ * be inserted * @return An of_list_object_t, needed to identify the object inside the list. * For example, if you want to remove an object from the list, you need * its of_list_object_t. */ -- (of_list_object_t*)insertObject: (ObjectType)object - beforeListObject: (of_list_object_t*)listObject; +- (of_list_object_t *)insertObject: (ObjectType)object + beforeListObject: (of_list_object_t *)listObject; /*! * @brief Inserts an object after another list object. * * @param object The object to insert @@ -118,19 +118,19 @@ * inserted * @return An of_list_object_t, needed to identify the object inside the list. * For example, if you want to remove an object from the list, you need * its of_list_object_t. */ -- (of_list_object_t*)insertObject: (ObjectType)object - afterListObject: (of_list_object_t*)listObject; +- (of_list_object_t *)insertObject: (ObjectType)object + afterListObject: (of_list_object_t *)listObject; /*! * @brief Removes the object with the specified list object from the list. * * @param listObject The list object returned by append / prepend */ -- (void)removeListObject: (of_list_object_t*)listObject; +- (void)removeListObject: (of_list_object_t *)listObject; /*! * @brief Checks whether the list contains an object equal to the specified * object. * @@ -151,11 +151,11 @@ /*! * @brief Returns an OFEnumerator to enumerate through all objects of the list. * * @returns An OFEnumerator to enumerate through all objects of the list */ -- (OFEnumerator OF_GENERIC(ObjectType)*)objectEnumerator; +- (OFEnumerator OF_GENERIC(ObjectType) *)objectEnumerator; /*! * @brief Returns the first object of the list or `nil`. * * @warning The returned object is *not* retained and autoreleased for @@ -190,10 +190,10 @@ of_list_object_t *_current; unsigned long _mutations; unsigned long *_mutationsPtr; } -- initWithList: (OFList*)list - mutationsPointer: (unsigned long*)mutationsPtr; +- initWithList: (OFList *)list + mutationsPointer: (unsigned long *)mutationsPtr; @end OF_ASSUME_NONNULL_END