diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:19:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:19:14 +0200 |
commit | f0fddb1d2de41373b938bb8a94b914c145fdcd48 (patch) | |
tree | 560c0773a8e3a3bcf84c66ed0a0591540d047132 /basic/source | |
parent | 6f62aab8a9451ee7dee61c589178fa696a7b51e7 (diff) |
loplugin:stringcopy: basic
Change-Id: I39d8ae76be2794d5e7b5a9979d7211823c995c2c
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/classes/sb.cxx | 2 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 2 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 913d94967aad..ecbf1525beea 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1684,7 +1684,7 @@ bool StarBASIC::RTError( SbError code, const OUString& rMsg, sal_Int32 l, sal_In if ( SbiRuntime::isVBAEnabled() && ( code == ERRCODE_BASIC_COMPAT ) ) { OUString aTmp = "\'" + OUString::number(SbxErrObject::getUnoErrObject()->getNumber()) + - "\'\n" + OUString(!GetSbData()->aErrMsg.isEmpty() ? GetSbData()->aErrMsg : rMsg); + "\'\n" + (!GetSbData()->aErrMsg.isEmpty() ? GetSbData()->aErrMsg : rMsg); code = (SbError)*new StringErrorInfo( code, aTmp ); } else diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index c35f96425659..50528d4d1be3 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -4685,7 +4685,7 @@ TypeClass StructRefInfo::getTypeClass() const SbUnoStructRefObject::SbUnoStructRefObject( const OUString& aName_, const StructRefInfo& rMemberInfo ) : SbxObject( aName_ ), maMemberInfo( rMemberInfo ), mbMemberCacheInit( false ) { - SetClassName( OUString( maMemberInfo.getTypeName() ) ); + SetClassName( maMemberInfo.getTypeName() ); } SbUnoStructRefObject::~SbUnoStructRefObject() diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index f5b63ce1a669..5222e6c9be90 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -2642,7 +2642,7 @@ void SbUserFormModule::InitObject() aArgs[ 0 ] = uno::Any(); aArgs[ 1 ] <<= m_xDialog; aArgs[ 2 ] <<= m_xModel; - aArgs[ 3 ] <<= OUString( GetParent()->GetName() ); + aArgs[ 3 ] <<= GetParent()->GetName(); pDocObject = new SbUnoObject( GetName(), uno::Any( xVBAFactory->createInstanceWithArguments( "ooo.vba.msforms.UserForm", aArgs ) ) ); uno::Reference< lang::XComponent > xComponent( m_xDialog, uno::UNO_QUERY_THROW ); |