fdo#43460 startmath,codemaker: use isEmpty()
Change-Id: I55d3f4546f40a321ebf4b08db33536592f451944 Reviewed-on: https://gerrit.libreoffice.org/4318 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
This commit is contained in:
committed by
Noel Power
parent
97460c421a
commit
2f731e7a19
@@ -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;
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user