summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/provider/content.cxx
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-05 14:38:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-05 14:38:22 +0000
commit06beaacf3d80d37d37570314642973b8f7673936 (patch)
treee4d1967bd16e39e30986c555beedfdaca6e6f74d /xmlhelp/source/cxxhelp/provider/content.cxx
parent73fd3185793f9c2ec0c5c4b6967c89bd82ec070f (diff)
use RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/content.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/provider/content.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index 52f66c39ea23..895a02e1a882 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -165,7 +165,7 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
rtl::OUString SAL_CALL Content::getImplementationName()
throw( uno::RuntimeException )
{
- return rtl::OUString::createFromAscii( "CHelpContent" );
+ return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "CHelpContent" ));
}
//=========================================================================
@@ -175,7 +175,7 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
{
uno::Sequence< rtl::OUString > aSNS( 1 );
aSNS.getArray()[ 0 ]
- = rtl::OUString::createFromAscii( MYUCP_CONTENT_SERVICE_NAME );
+ = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( MYUCP_CONTENT_SERVICE_NAME ));
return aSNS;
}
@@ -189,7 +189,7 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
rtl::OUString SAL_CALL Content::getContentType()
throw( uno::RuntimeException )
{
- return rtl::OUString::createFromAscii( MYUCP_CONTENT_TYPE );
+ return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( MYUCP_CONTENT_TYPE ));
}
//=========================================================================
@@ -462,8 +462,8 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( rProp.Name.compareToAscii( "ContentType" ) == 0 )
xRow->appendString(
rProp,
- rtl::OUString::createFromAscii(
- "application/vnd.sun.star.help" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "application/vnd.sun.star.help" )) );
else if( rProp.Name.compareToAscii( "Title" ) == 0 )
xRow->appendString ( rProp,m_aURLParameter.get_title() );
else if( rProp.Name.compareToAscii( "IsReadOnly" ) == 0 )
@@ -482,18 +482,18 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if( m_aURLParameter.isPicture() )
xRow->appendString(
rProp,
- rtl::OUString::createFromAscii( "image/gif" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "image/gif" )) );
else if( m_aURLParameter.isActive() )
xRow->appendString(
rProp,
- rtl::OUString::createFromAscii( "text/plain" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/plain" )) );
else if( m_aURLParameter.isFile() )
xRow->appendString(
- rProp,rtl::OUString::createFromAscii( "text/html" ) );
+ rProp,rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/html" )) );
else if( m_aURLParameter.isRoot() )
xRow->appendString(
rProp,
- rtl::OUString::createFromAscii( "text/css" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text/css" )) );
else
xRow->appendVoid( rProp );
else if( m_aURLParameter.isModule() )
@@ -544,8 +544,8 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
else if( rProp.Name.compareToAscii( "SearchScopes" ) == 0 )
{
uno::Sequence< rtl::OUString > seq( 2 );
- seq[0] = rtl::OUString::createFromAscii( "Heading" );
- seq[1] = rtl::OUString::createFromAscii( "FullText" );
+ seq[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Heading" ));
+ seq[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "FullText" ));
uno::Any aAny;
aAny <<= seq;
xRow->appendObject( rProp,aAny );