Overview
Comment: | Backport more nullability fixes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.90 |
Files: | files | file ages | folders |
SHA3-256: |
903530213a4223448a5e039bab512338 |
User & Date: | js on 2017-11-04 20:54:56 |
Other Links: | branch diff | manifest | tags |
Context
2017-11-04
| ||
20:56 | +[OFThread threadDictionary]: Handle nil thread check-in: c6e0123999 user: js tags: 0.90 | |
20:54 | Backport more nullability fixes check-in: 903530213a user: js tags: 0.90 | |
2017-10-30
| ||
00:30 | Fix nullable properties in Doxygen check-in: 7e5f21a0e1 user: js tags: 0.90 | |
Changes
Modified src/OFLocalization.h from [03b54489d7] to [68b2b646cf].
︙ | ︙ | |||
77 78 79 80 81 82 83 | * * @warning If you don't use @ref OFApplication, this might be `nil`! In this * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ | | | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | * * @warning If you don't use @ref OFApplication, this might be `nil`! In this * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ + (nullable instancetype)sharedLocalization; /** * @brief Returns the language of the locale. * * If the language is unknown, `nil` is returned. * * @return The language of the locale. |
︙ | ︙ | |||
114 115 116 117 118 119 120 | + (of_string_encoding_t)encoding; /*! * @brief Returns the decimal point of the system's locale. * * @return The decimal point of the system's locale */ | | | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | + (of_string_encoding_t)encoding; /*! * @brief Returns the decimal point of the system's locale. * * @return The decimal point of the system's locale */ + (nullable OFString *)decimalPoint; #ifdef OF_HAVE_FILES /*! * @brief Adds a directory to scan for language files. * * @param path The path to the directory to scan for language files */ |
︙ | ︙ |
Modified src/OFRunLoop.h from [584523a360] to [493e731362].
︙ | ︙ | |||
57 58 59 60 61 62 63 | } /*! * @brief Returns the run loop for the main thread. * * @return The run loop for the main thread */ | | | | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | } /*! * @brief Returns the run loop for the main thread. * * @return The run loop for the main thread */ + (nullable OFRunLoop *)mainRunLoop; /*! * @brief Returns the run loop for the current thread. * * @return The run loop for the current thread */ + (nullable OFRunLoop *)currentRunLoop; /*! * @brief Adds an OFTimer to the run loop. * * @param timer The timer to add */ - (void)addTimer: (OFTimer *)timer; |
︙ | ︙ |
Modified src/OFSystemInfo.h from [e8b6bc242b] to [7f1cbbaaf1].
︙ | ︙ | |||
47 48 49 50 51 52 53 | * On Unix systems, this adheres to the XDG Base Directory specification.@n * On Mac OS X and iOS, it uses the `NSApplicationSupportDirectory` directory.@n * On Windows, it uses the `APPDATA` environment variable.@n * On Haiku, it uses the `B_USER_SETTINGS_DIRECTORY` directory. * * @return The path where user data for the application can be stored */ | | | | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | * On Unix systems, this adheres to the XDG Base Directory specification.@n * On Mac OS X and iOS, it uses the `NSApplicationSupportDirectory` directory.@n * On Windows, it uses the `APPDATA` environment variable.@n * On Haiku, it uses the `B_USER_SETTINGS_DIRECTORY` directory. * * @return The path where user data for the application can be stored */ + (nullable OFString *)userDataPath; /*! * @brief Returns the path where user configuration for the application can be * stored. * * On Unix systems, this adheres to the XDG Base Directory specification.@n * On Mac OS X and iOS, it uses the `Preferences` directory inside of * `NSLibraryDirectory` directory.@n * On Windows, it uses the `APPDATA` environment variable.@n * On Haiku, it uses the `B_USER_SETTINGS_DIRECTORY` directory. * * @return The path where user configuration for the application can be stored */ + (nullable OFString *)userConfigPath; /*! * @brief Returns the vendor of the CPU. * * If the vendor could not be determined, `nil` is returned instead. * * @return The vendor of the CPU |
︙ | ︙ |
Modified src/OFThread.h from [f66e3d5e03] to [cd0a2c76ca].
︙ | ︙ | |||
108 109 110 111 112 113 114 | # endif /*! * @brief Returns the current thread. * * @return The current thread */ | | | | | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | # endif /*! * @brief Returns the current thread. * * @return The current thread */ + (nullable OFThread *)currentThread; /*! * @brief Returns the main thread. * * @return The main thread */ + (nullable OFThread *)mainThread; /*! * @brief Returns a dictionary to store thread-specific data, meaning it * returns a different dictionary for every thread. * * @return A dictionary to store thread-specific data. */ + (nullable OFMutableDictionary *)threadDictionary; #endif /*! * @brief Suspends execution of the current thread for the specified time * interval. * * @param timeInterval The number of seconds to sleep |
︙ | ︙ |