diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:02:50 +0200 |
commit | 6e31a794fa31dbd0d5083dbaf788ea84a7860df1 (patch) | |
tree | 0177445300e9ba5be485c2db06b9d17eb76a7dab /oox/source/ole/vbamodule.cxx | |
parent | f5eeaaac7c4e73b60e69355303a4e9a2f9180d55 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I21969536cec33a18be3f47a310789568a480ec2f
Diffstat (limited to 'oox/source/ole/vbamodule.cxx')
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index f8b8535a5f70..1451f4985e9e 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -245,7 +245,7 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg ) const } // normal source code line if( !mbExecutable ) - aSourceCode.appendAscii( "Rem " ); + aSourceCode.append( "Rem " ); aSourceCode.append( aCodeLine ).append( '\n' ); } } @@ -265,22 +265,22 @@ void VbaModule::createModule( const OUString& rVBASourceCode, script::ModuleInfo aModuleInfo; aModuleInfo.ModuleType = mnType; OUStringBuffer aSourceCode; - aSourceCode.appendAscii( "Rem Attribute VBA_ModuleType=" ); + aSourceCode.append( "Rem Attribute VBA_ModuleType=" ); switch( mnType ) { case script::ModuleType::NORMAL: - aSourceCode.appendAscii( "VBAModule" ); + aSourceCode.append( "VBAModule" ); break; case script::ModuleType::CLASS: - aSourceCode.appendAscii( "VBAClassModule" ); + aSourceCode.append( "VBAClassModule" ); break; case script::ModuleType::FORM: - aSourceCode.appendAscii( "VBAFormModule" ); + aSourceCode.append( "VBAFormModule" ); // hack from old filter, document Basic should know the XModel, but it doesn't aModuleInfo.ModuleObject.set( mxDocModel, UNO_QUERY ); break; case script::ModuleType::DOCUMENT: - aSourceCode.appendAscii( "VBADocumentModule" ); + aSourceCode.append( "VBADocumentModule" ); // get the VBA implementation object associated to the document module if( rxDocObjectNA.is() ) try { @@ -291,19 +291,19 @@ void VbaModule::createModule( const OUString& rVBASourceCode, } break; default: - aSourceCode.appendAscii( "VBAUnknown" ); + aSourceCode.append( "VBAUnknown" ); } aSourceCode.append( '\n' ); if( mbExecutable ) { - aSourceCode.appendAscii( "Option VBASupport 1\n" ); + aSourceCode.append( "Option VBASupport 1\n" ); if( mnType == script::ModuleType::CLASS ) - aSourceCode.appendAscii( "Option ClassModule\n" ); + aSourceCode.append( "Option ClassModule\n" ); } else { // add a subroutine named after the module itself - aSourceCode.appendAscii( "Sub " ). + aSourceCode.append( "Sub " ). append( maName.replace( ' ', '_' ) ).append( '\n' ); } @@ -312,7 +312,7 @@ void VbaModule::createModule( const OUString& rVBASourceCode, // close the subroutine named after the module if( !mbExecutable ) - aSourceCode.appendAscii( "End Sub\n" ); + aSourceCode.append( "End Sub\n" ); // insert extended module info try |