Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/4318

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/18/4318/1

fdo#43460 startmath,codemaker: use isEmpty()

Change-Id: I55d3f4546f40a321ebf4b08db33536592f451944
---
M codemaker/source/codemaker/global.cxx
M starmath/inc/visitors.hxx
2 files changed, 2 insertions(+), 2 deletions(-)



diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index 4324cb6..645fd06 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -135,7 +135,7 @@
         if( nIndex == -1 )
             break;
 
-        if (buffer.getLength() == 0 || OString(".") == buffer.getStr())
+        if (buffer.isEmpty() || OString(".") == buffer.getStr())
         {
             buffer.append(token);
             continue;
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx
index d864c45..ef21763 100644
--- a/starmath/inc/visitors.hxx
+++ b/starmath/inc/visitors.hxx
@@ -477,7 +477,7 @@
     }
     /** Append a blank for separation, if needed */
     inline void Separate( ){
-        if( !aCmdText.getLength() || aCmdText[ aCmdText.getLength() - 1 ] != ' ' )
+        if( aCmdText.isEmpty() || aCmdText[ aCmdText.getLength() - 1 ] != ' ' )
             aCmdText.append(' ');
     }
     /** Output text generated from the pNodes */

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I55d3f4546f40a321ebf4b08db33536592f451944
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Jelle van der Waa <jelle@vdwaa.nl>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.