diff options
-rw-r--r-- | codemaker/source/codemaker/global.cxx | 2 | ||||
-rw-r--r-- | starmath/inc/visitors.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx index 4324cb6226ae..645fd06b8398 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 d864c458cff6..ef217632c94c 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 */ |