Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2017

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/17/2017/1

add method isEmpty() to OUStringBuffer

Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78
---
M sal/inc/rtl/ustrbuf.hxx
1 file changed, 13 insertions(+), 0 deletions(-)



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 @@
     }
 
     /**
+      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

-- 
To view, visit https://gerrit.libreoffice.org/2017
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christina Roßmanith <chrrossman...@web.de>
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to