ObjFW  Diff

Differences From Artifact [dff64e5368]:

  • File src/OFDictionary.h — part of check-in [f816d1ec7c] at 2016-06-05 15:11:04 on branch trunk — Move -[setValue:forKey:] to OFDictionary

    If this is only overridden in OFMutableDictionary, this would lead to
    inconsistent behavior, as it could be called on an OFDictionary as well
    due to the fact that -[setValue:forKey:] is defined in OFObject.
    Instead, if the dictionary is immutable, an OFUndefinedKeyException is
    thrown. (user: js, size: 9203) [annotate] [blame] [check-ins using]

To Artifact [2cbca47e7d]:


310
311
312
313
314
315
316
317
318
319
320
# undef ObjectType
#endif

OF_ASSUME_NONNULL_END

#import "OFMutableDictionary.h"

#ifndef NSINTEGER_DEFINED
/* Required for dictionary literals to work */
@compatibility_alias NSDictionary OFDictionary;
#endif







|



310
311
312
313
314
315
316
317
318
319
320
# undef ObjectType
#endif

OF_ASSUME_NONNULL_END

#import "OFMutableDictionary.h"

#if !defined(NSINTEGER_DEFINED) && !__has_feature(modules)
/* Required for dictionary literals to work */
@compatibility_alias NSDictionary OFDictionary;
#endif