diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2012-10-09 17:30:01 -0300 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-10-13 14:11:43 +0530 |
commit | f50f9c43414403aca721612fdba9a9aa2dbdbf9b (patch) | |
tree | a29bed756b5ab2cbdc2e0a6e9475b259578f534e /basctl | |
parent | 3818933e351cd1d5f950c8891ec3974c066ce99e (diff) |
Review corrections in basctl/.../basobj3.cxx
Change-Id: I905e85ce9d754047ad287c9dd3caa92427b25b0d
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/basobj3.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 6a726662f08c..8ab1add87ef0 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -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++; |