From d894fee80e40519cb579987b95cb3d19345dfa71 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2013 11:45:23 +0200 Subject: remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructor Convert code like: OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OStringBuffer aKeyName("NDX"); which compiles down to the same code Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c --- idl/source/objects/module.cxx | 6 +++--- idl/source/objects/slot.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'idl') diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index 03bb4aafc57a..b78de7443970 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -134,7 +134,7 @@ void SvMetaModule::ReadAttributesSvIdl( SvIdlDataBase & rBase, sal_uInt32 nTokPos = rInStm.Tell(); if( !rBase.ReadIdFile( OStringToOUString(aSlotIdFile.getString(), RTL_TEXTENCODING_ASCII_US)) ) { - OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("cannot read file: ")); + OStringBuffer aStr("cannot read file: "); aStr.append(aSlotIdFile.getString()); rBase.SetError( aStr.makeStringAndClear(), rInStm.GetToken() ); rBase.WriteError( rInStm ); @@ -256,14 +256,14 @@ void SvMetaModule::ReadContextSvIdl( SvIdlDataBase & rBase, } else { - OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("cannot open file: ")); + OStringBuffer aStr("cannot open file: "); aStr.append(OUStringToOString(aFullName, RTL_TEXTENCODING_UTF8)); rBase.SetError(aStr.makeStringAndClear(), pTok); } } else { - OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("cannot find file:")); + OStringBuffer aStr("cannot find file:"); aStr.append(OUStringToOString(aFullName, RTL_TEXTENCODING_UTF8)); rBase.SetError(aStr.makeStringAndClear(), pTok); } diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 9201b53d0dc1..4d78be88dbc8 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1076,7 +1076,7 @@ void SvMetaSlot::Insert( SvSlotElementList& rList, const OString& rPrefix, static OString MakeSlotName( SvStringHashEntry * pEntry ) { - OStringBuffer aName(RTL_CONSTASCII_STRINGPARAM("SFX_SLOT_")); + OStringBuffer aName("SFX_SLOT_"); aName.append(pEntry->GetName()); return aName.makeStringAndClear().toAsciiUpperCase(); }; -- cgit