diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 7850b9597a68..f0aa0bac3b6b 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -84,7 +84,7 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName ) return 0; OUString aMacroName( rMacroName ); - if ( aMacroName.getLength() == 0 ) + if ( aMacroName.isEmpty() ) { if ( !pModule->GetMethods()->Count() ) aMacroName = "Main" ;