[Libreoffice-commits] core.git: codemaker/source starmath/inc
Jelle van der Waa
jelle at vdwaa.nl
Mon Jun 17 12:35:09 PDT 2013
codemaker/source/codemaker/global.cxx | 2 +-
starmath/inc/visitors.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2f731e7a19f2c36da64b9631cf4f2de0f6d2a86e
Author: Jelle van der Waa <jelle at vdwaa.nl>
Date: Mon Jun 17 17:29:32 2013 +0200
fdo#43460 startmath,codemaker: use isEmpty()
Change-Id: I55d3f4546f40a321ebf4b08db33536592f451944
Reviewed-on: https://gerrit.libreoffice.org/4318
Reviewed-by: Marcos Souza <marcos.souza.org at gmail.com>
Reviewed-by: Noel Power <noel.power at suse.com>
Tested-by: Noel Power <noel.power at suse.com>
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 @@ OString createFileNameFromType( const OString& destination,
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 @@ private:
}
/** 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 */
More information about the Libreoffice-commits
mailing list