summaryrefslogtreecommitdiff
path: root/sax/test
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-05-31 21:35:45 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-05-31 21:35:45 -0500
commit31cc01a5ffe32c1c7b8226d09d799ea83f6a8d30 (patch)
treef404d5ae14f35e11d9ec31e1c0a71fee8464b5a9 /sax/test
parent43c0c12369f379ec1c851486883a855f8f445d70 (diff)
targeted string re-work
Change-Id: Ifd6b90778725d94a9338a53a4cdc514cdb595052
Diffstat (limited to 'sax/test')
-rw-r--r--sax/test/sax/testsax.cxx30
-rw-r--r--sax/test/sax/testwriter.cxx68
-rw-r--r--sax/test/saxdemo.cxx50
-rw-r--r--sax/test/testcomponent.cxx16
4 files changed, 82 insertions, 82 deletions
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index dd2e5c38a496..e528f2659f8e 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -118,12 +118,12 @@ Reference < XInterface > SAL_CALL OSaxParserTest_CreateInstance( const Reference
OUString OSaxParserTest_getServiceName( ) throw ()
{
- return OUString( RTL_CONSTASCII_USTRINGPARAM("test.com.sun.star.xml.sax.Parser" ));
+ return OUString( "test.com.sun.star.xml.sax.Parser" );
}
OUString OSaxParserTest_getImplementationName( ) throw ()
{
- return OUString( RTL_CONSTASCII_USTRINGPARAM("test.extensions.xml.sax.Parser"));
+ return OUString( "test.extensions.xml.sax.Parser");
}
Sequence<OUString> OSaxParserTest_getSupportedServiceNames( ) throw ()
@@ -143,7 +143,7 @@ void OSaxParserTest::testInvariant(
const Reference < XInterface >& TestObject )
throw ( IllegalArgumentException, RuntimeException)
{
- if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser")) == TestName ) {
+ if( OUString( "com.sun.star.xml.sax.Parser") == TestName ) {
Reference < XParser > parser( TestObject , UNO_QUERY );
ERROR_ASSERT( parser.is() , "XDataInputStream cannot be queried" );
@@ -157,7 +157,7 @@ sal_Int32 OSaxParserTest::test(
sal_Int32 hTestHandle)
throw ( IllegalArgumentException, RuntimeException)
{
- if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser")) == TestName ) {
+ if( OUString( "com.sun.star.xml.sax.Parser") == TestName ) {
try
{
if( 0 == hTestHandle ) {
@@ -237,7 +237,7 @@ Reference < XInputStream > createStreamFromSequence(
const Reference < XMultiServiceFactory > &xSMgr )
{
Reference < XInterface > xOutStreamService =
- xSMgr->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.io.Pipe")) );
+ xSMgr->createInstance( OUString("com.sun.star.io.Pipe") );
OSL_ASSERT( xOutStreamService.is() );
Reference< XOutputStream > rOutStream( xOutStreamService , UNO_QUERY );
OSL_ASSERT( rOutStream.is() );
@@ -301,7 +301,7 @@ public: // Error handler
{
printf( "Error !\n" );
throw SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("error from error handler")) ,
+ OUString( "error from error handler") ,
Reference < XInterface >() ,
aSAXParseException );
}
@@ -509,7 +509,7 @@ void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
Reference< XInputStream > rInStream;
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
- sInput = OUString( OUString( RTL_CONSTASCII_USTRINGPARAM("internal")) );
+ sInput = OUString( OUString( "internal") );
if( rParser.is() ) {
InputSource source;
@@ -575,7 +575,7 @@ void OSaxParserTest::testNamespaces( const Reference < XParser > &rParser )
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
- sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "internal" ));
+ sInput = OUString( "internal" );
if( rParser.is() ) {
InputSource source;
@@ -629,7 +629,7 @@ void OSaxParserTest::testEncoding( const Reference < XParser > &rParser )
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
- sInput = OUString( RTL_CONSTASCII_USTRINGPARAM("internal") );
+ sInput = OUString( "internal" );
if( rParser.is() ) {
InputSource source;
@@ -663,7 +663,7 @@ void OSaxParserTest::testFile( const Reference < XParser > & rParser )
{
Reference< XInputStream > rInStream = createStreamFromFile( "testsax.xml" , m_rFactory );
- OUString sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "testsax.xml" ) );
+ OUString sInput = OUString( "testsax.xml" );
if( rParser.is() && rInStream.is() ) {
@@ -723,7 +723,7 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
Reference < XInputStream > rInStream =
createStreamFromFile( "testPerformance.xml" , m_rFactory );
- OUString sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "testperformance.xml") );
+ OUString sInput = OUString( "testperformance.xml" );
if( rParser.is() && rInStream.is() ) {
InputSource source;
@@ -797,16 +797,16 @@ sal_Bool SAL_CALL component_writeInfo(
reinterpret_cast< XRegistryKey * >( pRegistryKey ) );
OUString str =
- OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ OUString( "/" ) +
OSaxParserTest_getImplementationName() +
- OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
+ OUString( "/UNO/SERVICES" );
Reference< XRegistryKey > xNewKey = xKey->createKey( str );
xNewKey->createKey( OSaxParserTest_getServiceName() );
str =
- OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ OUString( "/" ) +
OSaxWriterTest_getImplementationName() +
- OUString( RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES") );
+ OUString( "/UNO/SERVICES" );
xNewKey = xKey->createKey( str );
xNewKey->createKey( OSaxWriterTest_getServiceName() );
diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx
index f894236d190c..63a918f5f66d 100644
--- a/sax/test/sax/testwriter.cxx
+++ b/sax/test/sax/testwriter.cxx
@@ -329,12 +329,12 @@ Reference < XInterface > SAL_CALL OSaxWriterTest_CreateInstance( const Reference
OUString OSaxWriterTest_getServiceName( ) throw ()
{
- return OUString( RTL_CONSTASCII_USTRINGPARAM("test.com.sun.star.xml.sax.Writer"));
+ return OUString( "test.com.sun.star.xml.sax.Writer");
}
OUString OSaxWriterTest_getImplementationName( ) throw ()
{
- return OUString( RTL_CONSTASCII_USTRINGPARAM("test.extensions.xml.sax.Writer"));
+ return OUString( "test.extensions.xml.sax.Writer");
}
Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw ()
@@ -352,7 +352,7 @@ void OSaxWriterTest::testInvariant( const OUString& TestName,
const Reference < XInterface >& TestObject )
throw ( IllegalArgumentException, RuntimeException)
{
- if( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer")) == TestName ) {
+ if( OUString("com.sun.star.xml.sax.Writer") == TestName ) {
Reference< XDocumentHandler > doc( TestObject , UNO_QUERY );
Reference< XExtendedDocumentHandler > ext( TestObject , UNO_QUERY );
Reference< XActiveDataSource > source( TestObject , UNO_QUERY );
@@ -373,7 +373,7 @@ sal_Int32 OSaxWriterTest::test(
sal_Int32 hTestHandle)
throw ( IllegalArgumentException,RuntimeException)
{
- if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer")) == TestName )
+ if( OUString( "com.sun.star.xml.sax.Writer") == TestName )
{
try
{
@@ -471,10 +471,10 @@ void OSaxWriterTest::writeParagraph(
void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r )
{
- OUString testParagraph = OUString( RTL_CONSTASCII_USTRINGPARAM(
+ OUString testParagraph = OUString(
"Dies ist ein bloeder Test um zu uberpruefen, ob der SAXWriter "
"wohl Zeilenumbrueche halbwegs richtig macht oder ob er die Zeile "
- "bis zum bitteren Ende schreibt." ));
+ "bis zum bitteren Ende schreibt." );
OFileWriter *pw = new OFileWriter("output.xml");
AttributeListImpl *pList = new AttributeListImpl;
@@ -491,24 +491,24 @@ void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r
r->startDocument();
- pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg1" )),
- OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("bla\n u")) );
- pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg2")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("blub")) );
+ pList->addAttribute( OUString( "Arg1" ),
+ OUString( "CDATA") ,
+ OUString( "bla\n u") );
+ pList->addAttribute( OUString( "Arg2") ,
+ OUString( "CDATA") ,
+ OUString( "blub") );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag1")) , rList );
+ r->startElement( OUString( "tag1") , rList );
r->ignorableWhitespace( OUString() );
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) );
+ r->characters( OUString( "huhu") );
r->ignorableWhitespace( OUString() );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("hi")) , rList );
+ r->startElement( OUString( "hi") , rList );
r->ignorableWhitespace( OUString() );
// the enpassant must be converted & -> &amp;
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM("&#252;")) );
+ r->characters( OUString( "&#252;") );
// Test added for mib. Tests if errors during conversions occurs
r->ignorableWhitespace( OUString() );
@@ -524,7 +524,7 @@ void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r
// '>' must not be converted
r->startCDATA();
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM(">fsfsdf<")) );
+ r->characters( OUString( ">fsfsdf<") );
r->endCDATA();
r->ignorableWhitespace( OUString() );
@@ -532,16 +532,16 @@ void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r
r->ignorableWhitespace( OUString() );
- r->comment( OUString( RTL_CONSTASCII_USTRINGPARAM("Dies ist ein Kommentar !")) );
+ r->comment( OUString( "Dies ist ein Kommentar !") );
r->ignorableWhitespace( OUString() );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("emptytagtest")) , rList );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("emptytagtest")) );
+ r->startElement( OUString( "emptytagtest") , rList );
+ r->endElement( OUString( "emptytagtest") );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("hi")) );
+ r->endElement( OUString( "hi") );
r->ignorableWhitespace( OUString() );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag1")) );
+ r->endElement( OUString( "tag1") );
r->endDocument();
}
@@ -566,7 +566,7 @@ void OSaxWriterTest::testExceptions( const Reference< XExtendedDocumentHandler >
sal_Bool bException = sal_True;
try
{
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) , rList );
+ r->startElement( OUString( "huhu") , rList );
bException = sal_False;
}
catch( SAXException &e )
@@ -578,13 +578,13 @@ void OSaxWriterTest::testExceptions( const Reference< XExtendedDocumentHandler >
r->startDocument();
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) , rList );
+ r->startElement( OUString( "huhu") , rList );
r->startCDATA();
{
sal_Bool bException = sal_True;
try{
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) , rList );
+ r->startElement( OUString( "huhu") , rList );
bException = sal_False;
}
catch( SAXException &e ) {
@@ -608,7 +608,7 @@ void OSaxWriterTest::testExceptions( const Reference< XExtendedDocumentHandler >
}
}
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) );
+ r->endElement( OUString( "huhu") );
r->endDocument();
}
@@ -631,10 +631,10 @@ void OSaxWriterTest::testDTD(const Reference< XExtendedDocumentHandler > &r )
r->startDocument();
- r->unknown( OUString( RTL_CONSTASCII_USTRINGPARAM("<!DOCTYPE iCalendar >\n")) );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) , rList );
+ r->unknown( OUString( "<!DOCTYPE iCalendar >\n") );
+ r->startElement( OUString( "huhu") , rList );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) );
+ r->endElement( OUString( "huhu") );
r->endDocument();
}
@@ -644,10 +644,10 @@ void OSaxWriterTest::testPerformance(const Reference< XExtendedDocumentHandler
AttributeListImpl *pList = new AttributeListImpl;
OUString testParagraph =
- OUString( RTL_CONSTASCII_USTRINGPARAM(
+ OUString(
"Dies ist ein bloeder Test um zu uberpruefen, ob der SAXWriter "
"wohl Zeilenumbrueche halbwegs richtig macht oder ob er die Zeile "
- "bis zum bitteren Ende schreibt." ));
+ "bis zum bitteren Ende schreibt." );
Reference< XAttributeList > rList( (XAttributeList *) pList , UNO_QUERY );
@@ -668,12 +668,12 @@ void OSaxWriterTest::testPerformance(const Reference< XExtendedDocumentHandler
// just write a bunch of xml tags !
// for performance testing
sal_Int32 i2;
- OUString huhu( RTL_CONSTASCII_USTRINGPARAM("huhu") );
+ OUString huhu( "huhu" );
OUString emptyString;
const int ITERATIONS = 125;
for( i2 = 0 ; i2 < ITERATIONS ; i2 ++ )
{
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag") ) +
+ r->startElement( OUString( "tag" ) +
OUString::valueOf( i2 ), rList );
for( sal_Int32 i = 0 ; i < 450 ; i ++ )
{
@@ -688,7 +688,7 @@ void OSaxWriterTest::testPerformance(const Reference< XExtendedDocumentHandler
for( i2 = ITERATIONS-1 ; i2 >= 0 ; i2-- )
{
r->ignorableWhitespace( emptyString );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag") ) + OUString::valueOf( i2 ) );
+ r->endElement( OUString( "tag" ) + OUString::valueOf( i2 ) );
}
r->endDocument();
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index bd3e1c0312a8..a7e8f8a16ab5 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -152,7 +152,7 @@ public: // Error handler
{
printf( "Error !\n" );
throw SAXException(
- OUString( RTL_CONSTASCII_USTRINGPARAM("error from error handler")) ,
+ OUString( "error from error handler") ,
Reference < XInterface >() ,
aSAXParseException );
}
@@ -504,14 +504,14 @@ int main (int argc, char **argv)
// create service manager
Reference< XMultiServiceFactory > xSMgr = createRegistryServiceFactory(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" )) );
+ OUString( "applicat.rdb" ) );
Reference < XImplementationRegistration > xReg;
try
{
// Create registration service
Reference < XInterface > x = xSMgr->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.ImplementationRegistration")) );
+ OUString("com.sun.star.registry.ImplementationRegistration") );
xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
}
catch( Exception & ) {
@@ -523,9 +523,9 @@ int main (int argc, char **argv)
try
{
// Load dll for the tested component
- OUString aDllName(RTL_CONSTASCII_USTRINGPARAM( "sax.uno" SAL_DLLEXTENSION ));
+ OUString aDllName( "sax.uno" SAL_DLLEXTENSION );
xReg->registerImplementation(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")),
+ OUString("com.sun.star.loader.SharedLibrary"),
aDllName,
Reference< XSimpleRegistry > () );
}
@@ -542,7 +542,7 @@ int main (int argc, char **argv)
// read xml from a file and count elements
//--------------------------------
Reference< XInterface > x = xSMgr->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser")) );
+ OUString("com.sun.star.xml.sax.Parser") );
if( x.is() )
{
Reference< XParser > rParser( x , UNO_QUERY );
@@ -582,7 +582,7 @@ int main (int argc, char **argv)
//----------------------
// The SAX-Writer demo
//----------------------
- x= xSMgr->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer")) );
+ x= xSMgr->createInstance( OUString("com.sun.star.xml.sax.Writer") );
if( x.is() )
{
printf( "start writing to %s\n" , argv[2] );
@@ -597,50 +597,50 @@ int main (int argc, char **argv)
Reference< XExtendedDocumentHandler > r( x , UNO_QUERY );
r->startDocument();
- pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg1" )),
- OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("foo\n u")) );
- pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg2")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("foo2")) );
+ pList->addAttribute( OUString( "Arg1" ),
+ OUString( "CDATA") ,
+ OUString( "foo\n u") );
+ pList->addAttribute( OUString( "Arg2") ,
+ OUString( "CDATA") ,
+ OUString( "foo2") );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag1")) , rList );
+ r->startElement( OUString( "tag1") , rList );
// tells the writer to insert a linefeed
r->ignorableWhitespace( OUString() );
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM("huhu")) );
+ r->characters( OUString( "huhu") );
r->ignorableWhitespace( OUString() );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("hi")) , rList );
+ r->startElement( OUString( "hi") , rList );
r->ignorableWhitespace( OUString() );
// the enpassant must be converted & -> &amp;
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM("&#252;")) );
+ r->characters( OUString( "&#252;") );
r->ignorableWhitespace( OUString() );
// '>' must not be converted
r->startCDATA();
- r->characters( OUString( RTL_CONSTASCII_USTRINGPARAM(" > foo < ")) );
+ r->characters( OUString( " > foo < ") );
r->endCDATA();
r->ignorableWhitespace( OUString() );
- OUString testParagraph = OUString( RTL_CONSTASCII_USTRINGPARAM(
+ OUString testParagraph = OUString(
"This is only a test to check, if the writer inserts line feeds "
- "if needed or if the writer puts the whole text into one line." ));
+ "if needed or if the writer puts the whole text into one line." );
writeParagraphHelper( r , testParagraph );
r->ignorableWhitespace( OUString() );
- r->comment( OUString( RTL_CONSTASCII_USTRINGPARAM("This is a comment !")) );
+ r->comment( OUString( "This is a comment !") );
r->ignorableWhitespace( OUString() );
- r->startElement( OUString( RTL_CONSTASCII_USTRINGPARAM("emptytagtest")) , rList );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("emptytagtest")) );
+ r->startElement( OUString( "emptytagtest") , rList );
+ r->endElement( OUString( "emptytagtest") );
r->ignorableWhitespace( OUString() );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("hi")) );
+ r->endElement( OUString( "hi") );
r->ignorableWhitespace( OUString() );
- r->endElement( OUString( RTL_CONSTASCII_USTRINGPARAM("tag1")) );
+ r->endElement( OUString( "tag1") );
r->endDocument();
printf( "finished writing\n" );
diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx
index c3b3e0a77423..bd05ac608c31 100644
--- a/sax/test/testcomponent.cxx
+++ b/sax/test/testcomponent.cxx
@@ -70,7 +70,7 @@ int main (int argc, char **argv)
// create service manager
Reference< XMultiServiceFactory > xSMgr =
- createRegistryServiceFactory( OUString( RTL_CONSTASCII_USTRINGPARAM("applicat.rdb")) );
+ createRegistryServiceFactory( OUString( "applicat.rdb") );
Reference < XImplementationRegistration > xReg;
Reference < XSimpleRegistry > xSimpleReg;
@@ -79,7 +79,7 @@ int main (int argc, char **argv)
{
// Create registration service
Reference < XInterface > x = xSMgr->createInstance(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.ImplementationRegistration")) );
+ OUString("com.sun.star.registry.ImplementationRegistration") );
xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
}
catch (const Exception&)
@@ -98,12 +98,12 @@ int main (int argc, char **argv)
#ifdef SAL_W32
OUString aDllName = OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US );
#else
- OUString aDllName = OUString( RTL_CONSTASCII_USTRINGPARAM("lib"));
+ OUString aDllName = OUString( "lib");
aDllName += OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US );
- aDllName += OUString( RTL_CONSTASCII_USTRINGPARAM(".so"));
+ aDllName += OUString( ".so");
#endif
xReg->registerImplementation(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")),
+ OUString("com.sun.star.loader.SharedLibrary"),
aDllName,
xSimpleReg );
}
@@ -126,13 +126,13 @@ int main (int argc, char **argv)
#ifdef SAL_W32
OUString aDllName = OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US );
#else
- OUString aDllName = OUString( RTL_CONSTASCII_USTRINGPARAM("lib"));
+ OUString aDllName = OUString( "lib");
aDllName += OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US );
- aDllName += OUString( RTL_CONSTASCII_USTRINGPARAM(".so"));
+ aDllName += OUString( ".so");
#endif
xReg->registerImplementation(
- OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")) ,
+ OUString("com.sun.star.loader.SharedLibrary") ,
aDllName,
xSimpleReg );
}