summaryrefslogtreecommitdiff
path: root/xmlsecurity/tools/standalone/csfit/decrypter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/tools/standalone/csfit/decrypter.cxx')
-rw-r--r--xmlsecurity/tools/standalone/csfit/decrypter.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmlsecurity/tools/standalone/csfit/decrypter.cxx b/xmlsecurity/tools/standalone/csfit/decrypter.cxx
index a39352c629ce..a8019720ab55 100644
--- a/xmlsecurity/tools/standalone/csfit/decrypter.cxx
+++ b/xmlsecurity/tools/standalone/csfit/decrypter.cxx
@@ -134,11 +134,11 @@ int SAL_CALL main( int argc, char **argv )
Reference< XMultiComponentFactory > xManager = NULL ;
Reference< XComponentContext > xContext = NULL ;
- xManager = serviceManager( xContext , OUString(RTL_CONSTASCII_USTRINGPARAM("local")), OUString::createFromAscii( argv[4] ) ) ;
+ xManager = serviceManager( xContext , OUString("local"), OUString::createFromAscii( argv[4] ) ) ;
//Create encryption template
Reference< XInterface > tplElement =
- xManager->createInstanceWithContext( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl")) , xContext ) ;
+ xManager->createInstanceWithContext( OUString("com.sun.star.xml.security.bridge.xmlsec.XMLElementWrapper_XmlSecImpl") , xContext ) ;
OSL_ENSURE( tplElement.is() ,
"Decryptor - "
"Cannot get service instance of \"xsec.XMLElementWrapper\"" ) ;
@@ -162,7 +162,7 @@ int SAL_CALL main( int argc, char **argv )
//Build XML Encryption template
Reference< XInterface > enctpl =
- xManager->createInstanceWithContext( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.crypto.XMLEncryptionTemplate")), xContext ) ;
+ xManager->createInstanceWithContext( OUString("com.sun.star.xml.crypto.XMLEncryptionTemplate"), xContext ) ;
OSL_ENSURE( enctpl.is() ,
"Decryptor - "
"Cannot get service instance of \"xsec.XMLEncryptionTemplate\"" ) ;
@@ -178,7 +178,7 @@ int SAL_CALL main( int argc, char **argv )
//Create security environment
//Build Security Environment
Reference< XInterface > xsecenv =
- xManager->createInstanceWithContext( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.security.bridge.xmlsec.SecurityEnvironment_NssImpl")), xContext ) ;
+ xManager->createInstanceWithContext( OUString("com.sun.star.xml.security.bridge.xmlsec.SecurityEnvironment_NssImpl"), xContext ) ;
OSL_ENSURE( xsecenv.is() ,
"Decryptor - "
"Cannot get service instance of \"xsec.SecurityEnvironment\"" ) ;
@@ -205,7 +205,7 @@ int SAL_CALL main( int argc, char **argv )
//Build XML Security Context
Reference< XInterface > xmlsecctx =
- xManager->createInstanceWithContext( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.security.bridge.xmlsec.XMLSecurityContext_NssImpl")), xContext ) ;
+ xManager->createInstanceWithContext( OUString("com.sun.star.xml.security.bridge.xmlsec.XMLSecurityContext_NssImpl"), xContext ) ;
OSL_ENSURE( xmlsecctx.is() ,
"Decryptor - "
"Cannot get service instance of \"xsec.XMLSecurityContext\"" ) ;
@@ -220,7 +220,7 @@ int SAL_CALL main( int argc, char **argv )
//Get encrypter
Reference< XInterface > xmlencrypter =
- xManager->createInstanceWithContext( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.security.bridge.xmlsec.XMLEncryption_NssImpl")), xContext ) ;
+ xManager->createInstanceWithContext( OUString("com.sun.star.xml.security.bridge.xmlsec.XMLEncryption_NssImpl"), xContext ) ;
OSL_ENSURE( xmlencrypter.is() ,
"Decryptor - "
"Cannot get service instance of \"xsec.XMLEncryption\"" ) ;