Kaydet (Commit) 8ee7c474 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make rtl::O[U]String::isEmpty return true bool

...instead of sal_Bool, to work around MSVC warning C4805: unsafe mix of type
'sal_Bool' and type 'bool'.

Change-Id: Ia3477539ccc23aa9daec49d633f023d414f2b4bf
üst acf134e1
......@@ -320,12 +320,9 @@ public:
@since LibreOffice 3.4
*/
sal_Bool isEmpty() const SAL_THROW(())
bool isEmpty() const SAL_THROW(())
{
if ( pData->length )
return sal_False;
else
return sal_True;
return pData->length == 0;
}
/**
......
......@@ -405,12 +405,9 @@ public:
@since LibreOffice 3.4
*/
sal_Bool isEmpty() const SAL_THROW(())
bool isEmpty() const SAL_THROW(())
{
if ( pData->length )
return sal_False;
else
return sal_True;
return pData->length == 0;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment