Kaydet (Commit) f50f9c43 authored tarafından Ricardo Montania's avatar Ricardo Montania Kaydeden (comit) Muthu Subramanian

Review corrections in basctl/.../basobj3.cxx

Change-Id: I905e85ce9d754047ad287c9dd3caa92427b25b0d
üst 3818933e
......@@ -83,20 +83,20 @@ SbMethod* CreateMacro( SbModule* pModule, const String& rMacroName )
if ( pModule->GetMethods()->Find( rMacroName, SbxCLASS_METHOD ) )
return 0;
String aMacroName( rMacroName );
if ( aMacroName.Len() == 0 )
OUString aMacroName( rMacroName );
if ( aMacroName.getLength() == 0 )
{
if ( !pModule->GetMethods()->Count() )
aMacroName = String( "Main" );
aMacroName = "Main" ;
else
{
bool bValid = false;
String aStdMacroText( "Macro" );
OUString aStdMacroText( "Macro" );
sal_uInt16 nMacro = 1;
while ( !bValid )
{
aMacroName = aStdMacroText;
aMacroName += String::CreateFromInt32( nMacro );
aMacroName += OUString::valueOf( nMacro );
// test whether existing...
bValid = pModule->GetMethods()->Find( aMacroName, SbxCLASS_METHOD ) ? false : true;
nMacro++;
......
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