[Libreoffice-commits] .: basic/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 3 09:09:14 PST 2013


 basic/source/classes/sbunoobj.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit d905daa0d05010ffe938790c513e25df3301b310
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date:   Sun Dec 30 14:00:42 2012 -0200

    fdo#57950: One more chained append in basic
    
    Change-Id: I179b5bfd1d85152a53bb821ab9eeb78efb8a6083
    Signed-off-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/1516
    Reviewed-by: Luboš Luňák <l.lunak at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 30f5c9f..e5ec362 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -954,10 +954,8 @@ Type getUnoTypeForSbxValue( SbxValue* pVal )
                     }
                 }
 
-                OUStringBuffer aSeqTypeName;
-                aSeqTypeName.appendAscii(aSeqLevelStr)
-                            .append(aElementType.getTypeName());
-                aRetType = Type( TypeClass_SEQUENCE, aSeqTypeName.makeStringAndClear() );
+                OUString aSeqTypeName = aSeqLevelStr + aElementType.getTypeName();
+                aRetType = Type( TypeClass_SEQUENCE, aSeqTypeName );
             }
             // #i33795 Map also multi dimensional arrays to corresponding sequences
             else if( nDims > 1 )


More information about the Libreoffice-commits mailing list