diff options
Diffstat (limited to 'include/rtl/string.hxx')
-rw-r--r-- | include/rtl/string.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index 9a163867c931..21cca1083914 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -316,6 +316,16 @@ public: return *this; } #endif + + /** + Clears the string, i.e, makes a zero-character string + @since LibreOffice 4.4 + */ + void clear() + { + rtl_string_new( &pData ); + } + /** Returns the length of this string. |