summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-12 13:16:41 +0100
committerChr. Rossmanith <ChrRossmanith@gmx.de>2013-03-12 21:02:26 +0100
commit32ac07a9296ce2cfaaef57c177b3d88e75b28f23 (patch)
treeac0f4a3064b0f94680bc3aa39aa097160c1538ab
parent97346bdddf4c7f5bd156e60b83223bc547d5d6f5 (diff)
Remove RTL_CONSTASCII_STRINGPARAM (unotools)
Change-Id: Id6f9a357431a636c5982964452a0f067e884da96
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx43
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx16
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx4
3 files changed, 26 insertions, 37 deletions
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index 93c112bb62df..d820c8e2b37d 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -339,13 +339,11 @@ void LocaleDataWrapper::invalidateData()
// && !aDebugLocale.EqualsAscii( "es-BR" ) // ?!? Brazil/es
)
{
- rtl::OUStringBuffer aMsg;
- aMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM(
- "ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)\n"));
+ rtl::OUStringBuffer aMsg("ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)\n");
aMsg.append(aDebugLocale);
- aMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM( " -> 0x"));
+ aMsg.appendAscii(" -> 0x");
aMsg.append(static_cast<sal_Int32>(eLang), 16);
- aMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM( " -> "));
+ aMsg.appendAscii(" -> ");
aMsg.append(aBackLanguageTag.getBcp47());
outputCheckMessage( aMsg.makeStringAndClear() );
}
@@ -610,8 +608,7 @@ void LocaleDataWrapper::getCurrSymbolsImpl()
{
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getCurrSymbolsImpl: no default currency"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getCurrSymbolsImpl: no default currency" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
nElem = 0;
@@ -720,8 +717,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
{ // bad luck
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getCurrFormatsImpl: no currency formats"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getCurrFormatsImpl: no currency formats" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
nCurrPositiveFormat = nCurrNegativeFormat = nCurrFormatDefault;
@@ -769,8 +765,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
scanCurrFormatImpl( pFormatArr[nElem].Code, 0, nSign, nPar, nNum, nBlank, nSym );
if (areChecksEnabled() && (nNum == -1 || nSym == -1))
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getCurrFormatsImpl: CurrPositiveFormat?"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getCurrFormatsImpl: CurrPositiveFormat?" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
if (nBlank == -1)
@@ -798,8 +793,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
scanCurrFormatImpl( rCode, nDelim+1, nSign, nPar, nNum, nBlank, nSym );
if (areChecksEnabled() && (nNum == -1 || nSym == -1 || (nPar == -1 && nSign == -1)))
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getCurrFormatsImpl: CurrNegativeFormat?"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getCurrFormatsImpl: CurrNegativeFormat?" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
// NOTE: one of nPar or nSign are allowed to be -1
@@ -935,8 +929,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const rtl::OUString& rCode )
{
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::scanDateFormat: not all DMY present"));
+ rtl::OUString aMsg( "LocaleDataWrapper::scanDateFormat: not all DMY present" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
if (nDay == -1)
@@ -958,8 +951,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const rtl::OUString& rCode )
{
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::scanDateFormat: no magic applyable"));
+ rtl::OUString aMsg( "LocaleDataWrapper::scanDateFormat: no magic applyable" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
return DMY;
@@ -977,8 +969,7 @@ void LocaleDataWrapper::getDateFormatsImpl()
{ // bad luck
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getDateFormatsImpl: no date formats"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getDateFormatsImpl: no date formats" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
nDateFormat = nLongDateFormat = DMY;
@@ -1022,16 +1013,14 @@ void LocaleDataWrapper::getDateFormatsImpl()
{
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getDateFormatsImpl: no edit"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getDateFormatsImpl: no edit" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
if ( nDef == -1 )
{
if (areChecksEnabled())
{
- rtl::OUString aMsg( RTL_CONSTASCII_USTRINGPARAM(
- "LocaleDataWrapper::getDateFormatsImpl: no default"));
+ rtl::OUString aMsg( "LocaleDataWrapper::getDateFormatsImpl: no default" );
outputCheckMessage( appendLocaleInfo( aMsg ) );
}
if ( nMedium != -1 )
@@ -1078,8 +1067,8 @@ void LocaleDataWrapper::getDigitGroupingImpl()
if (!aGrouping[0])
{
i18n::LanguageCountryInfo aLCInfo( getLanguageCountryInfo());
- if (aLCInfo.Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("IN")) || // India
- aLCInfo.Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("BT")) ) // Bhutan
+ if (aLCInfo.Country.equalsIgnoreAsciiCase("IN") || // India
+ aLCInfo.Country.equalsIgnoreAsciiCase("BT") ) // Bhutan
{
aGrouping[0] = 3;
aGrouping[1] = 2;
@@ -1772,10 +1761,10 @@ rtl::OUString LocaleDataWrapper::appendLocaleInfo(const rtl::OUString& rDebugMsg
rtl::OUStringBuffer aDebugMsg(rDebugMsg);
aDebugMsg.append(static_cast<sal_Unicode>('\n'));
aDebugMsg.append(maLanguageTag.getBcp47());
- aDebugMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM(" requested\n"));
+ aDebugMsg.appendAscii(" requested\n");
LanguageTag aLoaded = getLoadedLanguageTag();
aDebugMsg.append(aLoaded.getBcp47());
- aDebugMsg.appendAscii(RTL_CONSTASCII_STRINGPARAM(" loaded"));
+ aDebugMsg.appendAscii(" loaded");
return aDebugMsg.makeStringAndClear();
}
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index dc4a4a44825f..086ee702582a 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -186,7 +186,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
for (i = 0; i < n; i++)
{
PropertyChangeEvent evt (rEvent[i]);
- if (evt.PropertyName == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("DocumentHeader")))
+ if (evt.PropertyName == ::rtl::OUString("DocumentHeader"))
{
Sequence<DocumentHeaderField> aHead;
if (evt.NewValue >>= aHead)
@@ -211,12 +211,12 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
m_xLockBytes->SetStreamValid_Impl();
}
- else if (evt.PropertyName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("PresentationURL")))
+ else if (evt.PropertyName == rtl::OUString("PresentationURL"))
{
::rtl::OUString aUrl;
if (evt.NewValue >>= aUrl)
{
- ::rtl::OUString aBad (RTL_CONSTASCII_USTRINGPARAM ("private:"));
+ ::rtl::OUString aBad ("private:");
if (!aUrl.startsWith(aBad))
{
// URL changed (Redirection).
@@ -224,7 +224,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc
}
}
}
- else if (evt.PropertyName == ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("MediaType")))
+ else if (evt.PropertyName == ::rtl::OUString("MediaType"))
{
::rtl::OUString aContentType;
if (evt.NewValue >>= aContentType)
@@ -910,10 +910,10 @@ static sal_Bool UCBOpenContentSync(
aScheme = xContId->getContentProviderScheme();
// now determine whether we use a timeout or not;
- if( ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("http")) &&
- ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("https")) &&
- ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.webdav")) &&
- ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("ftp")))
+ if( ! aScheme.equalsIgnoreAsciiCase("http") &&
+ ! aScheme.equalsIgnoreAsciiCase("https") &&
+ ! aScheme.equalsIgnoreAsciiCase("vnd.sun.star.webdav") &&
+ ! aScheme.equalsIgnoreAsciiCase("ftp"))
return _UCBOpenContentSync(
xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler);
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index 62d4fb77ddb8..94b1afa4ac79 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -446,12 +446,12 @@ throw ( ::css::uno::RuntimeException )
::rtl::OUString OTempFileService::getImplementationName_Static ()
{
- return ::rtl::OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.io.comp.TempFile" ) );
+ return ::rtl::OUString ( "com.sun.star.io.comp.TempFile" );
}
::css::uno::Sequence < ::rtl::OUString > OTempFileService::getSupportedServiceNames_Static()
{
::css::uno::Sequence < ::rtl::OUString > aNames ( 1 );
- aNames[0] = ::rtl::OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.io.TempFile" ) );
+ aNames[0] = "com.sun.star.io.TempFile";
return aNames;
}
::css::uno::Reference < ::css::uno::XInterface >SAL_CALL XTempFile_createInstance(