cppcheck: emptyStringTest
This commit is contained in:
parent
1e8a123248
commit
3facbad1ec
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ using namespace rtl;
|
|||
inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" )
|
||||
{
|
||||
|
||||
if (strlen(msg) > 0)
|
||||
if (msg && msg[0] != 0)
|
||||
{
|
||||
t_print("%s: ", msg );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue