diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-02-06 21:49:35 +0100 |
---|---|---|
committer | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-02-07 08:40:07 +0100 |
commit | 584612a9290445924c3c13d763381ced74c5ebea (patch) | |
tree | c2a8adca551562093ead43e67189019d6230e295 /sal | |
parent | fbdaa717e3dc8a59d474b1bb5503cfa6dac609e8 (diff) |
improve comments of isEmpty()
Change-Id: I6542470c2d4b27de25e263651e25baf85c7d018d
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/rtl/strbuf.hxx | 13 | ||||
-rw-r--r-- | sal/inc/rtl/string.hxx | 4 | ||||
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 6 | ||||
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 4 |
4 files changed, 20 insertions, 7 deletions
diff --git a/sal/inc/rtl/strbuf.hxx b/sal/inc/rtl/strbuf.hxx index 2740c48b4c8b..fe19227c41ba 100644 --- a/sal/inc/rtl/strbuf.hxx +++ b/sal/inc/rtl/strbuf.hxx @@ -290,6 +290,19 @@ public: } /** + Checks if a string buffer is empty. + + @return true if the string buffer is empty; + false, otherwise. + + @since LibreOffice 4.1 + */ + bool isEmpty() const SAL_THROW(()) + { + return pData->length == 0; + } + + /** Returns the current capacity of the String buffer. The capacity diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index 345827c31430..1e5aca065843 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -356,8 +356,8 @@ public: /** Checks if a string is empty. - @return sal_True if the string is empty; - sal_False, otherwise. + @return true if the string is empty; + false, otherwise. @since LibreOffice 3.4 */ diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index b8bae09fb8b4..a7d57481fd1f 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -284,10 +284,10 @@ public: /** Checks if a string buffer is empty. - @return sal_True if the string buffer is empty; - sal_False, otherwise. + @return true if the string buffer is empty; + false, otherwise. - @since LibreOffice 4.0 + @since LibreOffice 4.1 */ bool isEmpty() const SAL_THROW(()) { diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index 7024bf4a5e21..1742c354296a 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -446,8 +446,8 @@ public: /** Checks if a string is empty. - @return sal_True if the string is empty; - sal_False, otherwise. + @return true if the string is empty; + false, otherwise. @since LibreOffice 3.4 */ |