[Libreoffice-commits] core.git: sal/inc
Chr. Rossmanith
ChrRossmanith at gmx.de
Wed Feb 6 09:12:27 PST 2013
sal/inc/rtl/ustrbuf.hxx | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit 35df0bd6e3674ea861d06da54f5c016f10cedb18
Author: Chr. Rossmanith <ChrRossmanith at gmx.de>
Date: Wed Feb 6 14:49:39 2013 +0100
add method isEmpty() to OUStringBuffer
Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78
Reviewed-on: https://gerrit.libreoffice.org/2017
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index 98f1fc5..b8bae09 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -282,6 +282,19 @@ public:
}
/**
+ Checks if a string buffer is empty.
+
+ @return sal_True if the string buffer is empty;
+ sal_False, otherwise.
+
+ @since LibreOffice 4.0
+ */
+ bool isEmpty() const SAL_THROW(())
+ {
+ return pData->length == 0;
+ }
+
+ /**
Returns the current capacity of the String buffer.
The capacity
More information about the Libreoffice-commits
mailing list