diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 11:45:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:07 +0200 |
commit | d894fee80e40519cb579987b95cb3d19345dfa71 (patch) | |
tree | f0b91e37171f4123d3528b681613c99f34509d2e /idl | |
parent | 5112f6a6c6e4cd76045f31e269a679b50dc83fb2 (diff) |
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
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/module.cxx | 6 | ||||
-rw-r--r-- | idl/source/objects/slot.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
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(); }; |