summaryrefslogtreecommitdiffstats
path: root/basic/source/classes/sbunoobj.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:34:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:34:39 +0100
commita80bab705888ca020533dee97b2e2850529dbf09 (patch)
treea6a739dc6809630ad3fadc09deff84a9df64d401 /basic/source/classes/sbunoobj.cxx
parentloplugin:stringconstant: elide explicit ctor usage (automatic rewrite) (diff)
downloadcore-a80bab705888ca020533dee97b2e2850529dbf09.tar.gz
core-a80bab705888ca020533dee97b2e2850529dbf09.zip
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I9979100550a86ac3f42d74a5403fb3ffd9d5006b
Diffstat (limited to 'basic/source/classes/sbunoobj.cxx')
-rw-r--r--basic/source/classes/sbunoobj.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index c6bb54841288..74a97996fc4a 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -2329,8 +2329,8 @@ SbUnoObject::SbUnoObject( const OUString& aName_, const Any& aUnoObj_ )
static Reference< XIntrospection > xIntrospection;
// beat out again the default properties of Sbx
- Remove( OUString("Name"), SbxCLASS_DONTCARE );
- Remove( OUString("Parent"), SbxCLASS_DONTCARE );
+ Remove( "Name", SbxCLASS_DONTCARE );
+ Remove( "Parent", SbxCLASS_DONTCARE );
// check the type of the objects
TypeClass eType = aUnoObj_.getValueType().getTypeClass();
@@ -3300,7 +3300,7 @@ void VBAConstantHelper::init()
{
Sequence< TypeClass > types(1);
types[ 0 ] = TypeClass_CONSTANTS;
- Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( OUString(defaultNameSpace), types, TypeDescriptionSearchDepth_INFINITE );
+ Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( defaultNameSpace, types, TypeDescriptionSearchDepth_INFINITE );
if ( !xEnum.is())
{
@@ -4742,7 +4742,7 @@ bool handleToStringForCOMObjects( SbxObject* pObj, SbxValue* pVal )
// Only for native COM objects
if( pUnoObj->isNativeCOMObject() )
{
- SbxVariableRef pMeth = pObj->Find( OUString( "toString" ), SbxCLASS_METHOD );
+ SbxVariableRef pMeth = pObj->Find( "toString", SbxCLASS_METHOD );
if ( pMeth.Is() )
{
SbxValues aRes;