summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/test/searchdemo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlhelp/source/cxxhelp/test/searchdemo.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/test/searchdemo.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmlhelp/source/cxxhelp/test/searchdemo.cxx b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
index 6bf827e849a2..201567356213 100644
--- a/xmlhelp/source/cxxhelp/test/searchdemo.cxx
+++ b/xmlhelp/source/cxxhelp/test/searchdemo.cxx
@@ -78,21 +78,21 @@ int main( int argc,char* argv[] )
try
{
- rtl::OUString installDir = rtl::OUString::createFromAscii( "//./e|/index/" );
+ rtl::OUString installDir(RTL_CONSTASCII_USTRINGPARAM("//./e|/index/"));
QueryProcessor queryProcessor( installDir );
std::vector<rtl::OUString> Query(2);
- Query[0] = rtl::OUString::createFromAscii( "text*" );
- Query[1] = rtl::OUString::createFromAscii( "abbildung" );
- rtl::OUString Scope = rtl::OUString::createFromAscii( "headingheading" );
+ Query[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "text*" ));
+ Query[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "abbildung" ));
+ rtl::OUString Scope = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "headingheading" ));
int HitCount = 40;
QueryStatement queryStatement( HitCount,Query,Scope );
queryResults = queryProcessor.processQuery( queryStatement );
rtl::OUString translations[2];
- translations[0] = rtl::OUString::createFromAscii( "#HLP#" );
- translations[1] = rtl::OUString::createFromAscii( "vnd.sun.star.help://" );
+ translations[0] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "#HLP#" ));
+ translations[1] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.help://" ));
PrefixTranslator* translator = PrefixTranslator::makePrefixTranslator( translations,2 );