@@ -530,11 +530,11 @@ * use the result outside the scope of the current autorelease pool, you have to * copy it. * * \return The OFString as a UTF-8 encoded C string */ -- (const char*)UTF8String; +- (const char*)UTF8String OF_RETURNS_INNER_POINTER; /** * \brief Returns the OFString as a C string in the specified encoding. * * The result is valid until the autorelease pool is released. If you want to @@ -542,11 +542,12 @@ * copy it. * * \param encoding The encoding for the C string * \return The OFString as a C string in the specified encoding */ -- (const char*)cStringWithEncoding: (of_string_encoding_t)encoding;; +- (const char*)cStringWithEncoding: (of_string_encoding_t)encoding + OF_RETURNS_INNER_POINTER; /** * \brief Returns the length of the string in Unicode characters. * * \return The length of the string in Unicode characters @@ -837,11 +838,11 @@ * use the result outside the scope of the current autorelease pool, you have to * copy it. * * \return The string as an array of Unicode characters */ -- (const of_unichar_t*)unicodeString; +- (const of_unichar_t*)unicodeString OF_RETURNS_INNER_POINTER; /** * \brief Returns the string in big endian UTF-16 encoding. * * The result is valid until the autorelease pool is released. If you want to @@ -848,11 +849,11 @@ * use the result outside the scope of the current autorelease pool, you have to * copy it. * * \return The string in big endian UTF-16 encoding */ -- (const uint16_t*)UTF16String; +- (const uint16_t*)UTF16String OF_RETURNS_INNER_POINTER; /** * \brief Writes the string into the specified file using UTF-8 encoding. * * \param path The path of the file to write to