[Libreoffice-commits] .: basctl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Oct 13 01:41:28 PDT 2012


 basctl/source/basicide/basobj3.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit f50f9c43414403aca721612fdba9a9aa2dbdbf9b
Author: Ricardo Montania <ricardo at linuxafundo.com.br>
Date:   Tue Oct 9 17:30:01 2012 -0300

    Review corrections in basctl/.../basobj3.cxx
    
    Change-Id: I905e85ce9d754047ad287c9dd3caa92427b25b0d

diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx
index 6a72666..8ab1add 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++;


More information about the Libreoffice-commits mailing list