summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unoxml/source/dom/attr.cxx2
-rw-r--r--unoxml/source/dom/attributesmap.cxx16
-rw-r--r--ure/source/uretest/cppmain.cc21
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx26
-rw-r--r--vbahelper/source/vbahelper/vbacommandbars.cxx6
-rw-r--r--writerfilter/qa/cppunittests/doctok/testdoctok.cxx6
-rw-r--r--xmlhelp/source/cxxhelp/provider/db.hxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/inputstream.cxx2
8 files changed, 38 insertions, 43 deletions
diff --git a/unoxml/source/dom/attr.cxx b/unoxml/source/dom/attr.cxx
index e116950ae01a..dc2ef6eadc19 100644
--- a/unoxml/source/dom/attr.cxx
+++ b/unoxml/source/dom/attr.cxx
@@ -197,7 +197,7 @@ namespace DOM
// dispatch DOM events to signal change in attribute value
// dispatch DomAttrModified + DOMSubtreeModified
- OUString sEventName( RTL_CONSTASCII_USTRINGPARAM("DOMAttrModified") );
+ OUString sEventName( "DOMAttrModified" );
Reference< XDocumentEvent > docevent(getOwnerDocument(), UNO_QUERY);
Reference< XMutationEvent > event(docevent->createEvent(sEventName),UNO_QUERY);
event->initMutationEvent(
diff --git a/unoxml/source/dom/attributesmap.cxx b/unoxml/source/dom/attributesmap.cxx
index d0508f7af3f6..9c93f24a2d20 100644
--- a/unoxml/source/dom/attributesmap.cxx
+++ b/unoxml/source/dom/attributesmap.cxx
@@ -162,8 +162,8 @@ namespace DOM
// no MutexGuard needed: m_pElement is const
Reference< XAttr > const xAttr(m_pElement->getAttributeNode(name));
if (!xAttr.is()) {
- throw DOMException(OUString(RTL_CONSTASCII_USTRINGPARAM(
- "CAttributesMap::removeNamedItem: no such attribute")),
+ throw DOMException(OUString(
+ "CAttributesMap::removeNamedItem: no such attribute"),
static_cast<OWeakObject*>(this),
DOMExceptionType_NOT_FOUND_ERR);
}
@@ -184,8 +184,8 @@ namespace DOM
Reference< XAttr > const xAttr(
m_pElement->getAttributeNodeNS(namespaceURI, localName));
if (!xAttr.is()) {
- throw DOMException(OUString(RTL_CONSTASCII_USTRINGPARAM(
- "CAttributesMap::removeNamedItemNS: no such attribute")),
+ throw DOMException(OUString(
+ "CAttributesMap::removeNamedItemNS: no such attribute"),
static_cast<OWeakObject*>(this),
DOMExceptionType_NOT_FOUND_ERR);
}
@@ -203,8 +203,8 @@ namespace DOM
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
- throw DOMException(OUString(RTL_CONSTASCII_USTRINGPARAM(
- "CAttributesMap::setNamedItem: XAttr argument expected")),
+ throw DOMException(OUString(
+ "CAttributesMap::setNamedItem: XAttr argument expected"),
static_cast<OWeakObject*>(this),
DOMExceptionType_HIERARCHY_REQUEST_ERR);
}
@@ -223,8 +223,8 @@ namespace DOM
{
Reference< XAttr > const xAttr(xNode, UNO_QUERY);
if (!xNode.is()) {
- throw DOMException(OUString(RTL_CONSTASCII_USTRINGPARAM(
- "CAttributesMap::setNamedItemNS: XAttr argument expected")),
+ throw DOMException(OUString(
+ "CAttributesMap::setNamedItemNS: XAttr argument expected"),
static_cast<OWeakObject*>(this),
DOMExceptionType_HIERARCHY_REQUEST_ERR);
}
diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc
index 41fc255eb7e4..86ca2b5fdb95 100644
--- a/ure/source/uretest/cppmain.cc
+++ b/ure/source/uretest/cppmain.cc
@@ -137,8 +137,7 @@ private:
throw;
} catch (::css::uno::Exception &) {
throw ::css::uno::RuntimeException(
- ::rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("error creating instance")),
+ ::rtl::OUString("error creating instance"),
static_cast< ::cppu::OWeakObject * >(this));
}
if (!instance.is()) {
@@ -152,18 +151,18 @@ private:
for (::std::size_t i = 0; i < SAL_N_ELEMENTS(singletons); ++i)
{
::rtl::OUStringBuffer b;
- b.appendAscii(RTL_CONSTASCII_STRINGPARAM("/singletons/"));
- b.appendAscii(singletons[i]);
+ b.append("/singletons/");
+ b.append(singletons[i]);
::css::uno::Reference< ::css::uno::XInterface > instance(
context_->getValueByName(b.makeStringAndClear()),
::css::uno::UNO_QUERY_THROW);
}
test(
::test::types::CppTest::create(context_),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("test.types.CppTest")));
+ ::rtl::OUString("test.types.CppTest"));
test(
::test::types::JavaTest::create(context_),
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("test.types.JavaTest")));
+ ::rtl::OUString("test.types.JavaTest"));
return 0;
}
@@ -180,8 +179,7 @@ void Service::test(
if (!ok) {
throw ::css::uno::RuntimeException(
(name
- + ::rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM(".throwException failed"))),
+ + ::rtl::OUString(".throwException failed")),
static_cast< ::cppu::OWeakObject * >(this));
}
}
@@ -196,14 +194,13 @@ namespace CppMain {
return static_cast< ::cppu::OWeakObject * >(new Service(context));
} catch (::std::bad_alloc &) {
throw ::css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("std::bad_alloc")),
+ ::rtl::OUString("std::bad_alloc"),
::css::uno::Reference< ::css::uno::XInterface >());
}
}
-::rtl::OUString getImplementationName() {
- return ::rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("test.cpp.cppmain.Component"));
+OUString getImplementationName() {
+ return OUString("test.cpp.cppmain.Component");
}
::css::uno::Sequence< ::rtl::OUString > getSupportedServiceNames() {
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index b1798e38b83b..cb66c476d880 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -300,48 +300,48 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St
uno::Reference< awt::XControlModel > xNewModel;
bool bFontSupport = false;
bool bNativeAX = false;
- if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.CommandButton.1" ) ) )
+ if( aComServiceName.equalsIgnoreAsciiCase( "Forms.CommandButton.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlButtonModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 72.0; fDefHeight = 24.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.Label.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.Label.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlFixedTextModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 72.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.Image.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.Image.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlImageControlModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 72.0; fDefHeight = 72.0;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.CheckBox.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.CheckBox.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlCheckBoxModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 108.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.OptionButton.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.OptionButton.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlRadioButtonModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 108.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.TextBox.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.TextBox.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlEditModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 72.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ListBox.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.ListBox.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlListBoxModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 72.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ComboBox.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.ComboBox.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlComboBoxModel" ), uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySet > xProps( xNewModel, uno::UNO_QUERY_THROW );
@@ -349,7 +349,7 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St
fDefWidth = 72.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ToggleButton.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.ToggleButton.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlButtonModel" ), uno::UNO_QUERY_THROW );
uno::Reference< beans::XPropertySet > xProps( xNewModel, uno::UNO_QUERY_THROW );
@@ -357,18 +357,18 @@ uno::Any SAL_CALL ScVbaControls::Add( const uno::Any& Object, const uno::Any& St
fDefWidth = 72.0; fDefHeight = 18.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.Frame.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.Frame.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlGroupBoxModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 216.0; fDefHeight = 144.0;
bFontSupport = true;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.SpinButton.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.SpinButton.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlSpinButtonModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 12.75; fDefHeight = 25.5;
}
- else if( aComServiceName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM( "Forms.ScrollBar.1" ) ) )
+ else if( aComServiceName.equalsIgnoreAsciiCase( "Forms.ScrollBar.1" ) )
{
xNewModel.set( xModelFactory->createInstance( "com.sun.star.awt.UnoControlScrollBarModel" ), uno::UNO_QUERY_THROW );
fDefWidth = 12.75; fDefHeight = 63.8;
@@ -488,7 +488,7 @@ void SAL_CALL ScVbaControls::Remove( const uno::Any& StringKeyOrIndex )
}
catch (const uno::Exception&)
{
- // throw lang::WrappedTargetException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Can not create AXControl!" ) ),
+ // throw lang::WrappedTargetException( ::rtl::OUString( "Can not create AXControl!" ),
// uno::Reference< uno::XInterface >(),
// uno::makeAny( e ) );
}
diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx
index e8a200044d24..62b5f913a83b 100644
--- a/vbahelper/source/vbahelper/vbacommandbars.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbars.cxx
@@ -111,13 +111,13 @@ ScVbaCommandBars::createCollectionObject( const uno::Any& aSource )
// some built-in command bars
if( m_pCBarHelper->getModuleId() == "com.sun.star.sheet.SpreadsheetDocument" )
{
- if( sBarName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM("Worksheet Menu Bar") ) )
+ if( sBarName.equalsIgnoreAsciiCase( "Worksheet Menu Bar" ) )
{
// spreadsheet menu bar
sResourceUrl = ITEM_MENUBAR_URL;
bMenu = sal_True;
}
- else if( sBarName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM("Cell") ) )
+ else if( sBarName.equalsIgnoreAsciiCase( "Cell" ) )
{
// EVIL HACK (tm): spreadsheet cell context menu as dummy object without functionality
aRet <<= uno::Reference< XCommandBar >( new VbaDummyCommandBar( this, mxContext, sBarName, office::MsoBarType::msoBarTypePopup ) );
@@ -125,7 +125,7 @@ ScVbaCommandBars::createCollectionObject( const uno::Any& aSource )
}
else if( m_pCBarHelper->getModuleId() == "com.sun.star.text.TextDocument" )
{
- if( sBarName.equalsIgnoreAsciiCaseAsciiL( RTL_CONSTASCII_STRINGPARAM("Menu Bar") ) )
+ if( sBarName.equalsIgnoreAsciiCase( "Menu Bar" ) )
{
// text processor menu bar
sResourceUrl = ITEM_MENUBAR_URL;
diff --git a/writerfilter/qa/cppunittests/doctok/testdoctok.cxx b/writerfilter/qa/cppunittests/doctok/testdoctok.cxx
index 7fef9a63d886..9c382466ab51 100644
--- a/writerfilter/qa/cppunittests/doctok/testdoctok.cxx
+++ b/writerfilter/qa/cppunittests/doctok/testdoctok.cxx
@@ -81,10 +81,8 @@ namespace testdoctok
OSL_ASSERT(xFactory.is());
uno::Sequence<uno::Any> aUcbInitSequence(2);
- aUcbInitSequence[0] <<=
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Local"));
- aUcbInitSequence[1] <<=
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office"));
+ aUcbInitSequence[0] <<= rtl::OUString("Local");
+ aUcbInitSequence[1] <<= rtl::OUString("Office");
uno::Reference<lang::XMultiServiceFactory>
xServiceFactory(xFactory, uno::UNO_QUERY);
diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx
index a8e90978bdcd..6c42e5fecf7b 100644
--- a/xmlhelp/source/cxxhelp/provider/db.hxx
+++ b/xmlhelp/source/cxxhelp/provider/db.hxx
@@ -110,7 +110,7 @@ namespace helpdatafileproxy {
, m_nItRead( -1 )
, m_iItPos( -1 )
{
- OSL_ASSERT(!rFileURL.compareTo(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:")), 5));
+ OSL_ASSERT(!rFileURL.compareTo("file:", 5));
}
~Hdf()
{ releaseHashMap(); }
diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx
index 17e2f98ffc57..6ef2b30ee645 100644
--- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx
+++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx
@@ -129,7 +129,7 @@ XInputStream_impl::skipBytes(
if (m_aFile.setPos(osl_Pos_Current, sal_uInt64(nBytesToSkip)) != osl::FileBase::E_None)
{
throw io::IOException(::rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM("XInputStream_impl::skipBytes failed seek")), uno::Reference< uno::XInterface >());
+ "XInputStream_impl::skipBytes failed seek"), uno::Reference< uno::XInterface >());
}
}