summaryrefslogtreecommitdiff
path: root/svl/source/passwordcontainer/syscreds.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/passwordcontainer/syscreds.cxx')
-rw-r--r--svl/source/passwordcontainer/syscreds.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx
index 66afb759072f..cd0a4f94809a 100644
--- a/svl/source/passwordcontainer/syscreds.cxx
+++ b/svl/source/passwordcontainer/syscreds.cxx
@@ -33,14 +33,13 @@ using namespace com::sun::star;
SysCredentialsConfigItem::SysCredentialsConfigItem(
SysCredentialsConfig * pOwner )
-: utl::ConfigItem( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Passwords")),
+: utl::ConfigItem( rtl::OUString("Office.Common/Passwords"),
CONFIG_MODE_IMMEDIATE_UPDATE ),
m_bInited( false ),
m_pOwner( pOwner )
{
uno::Sequence< ::rtl::OUString > aNode( 1 );
- aNode[ 0 ] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "Office.Common/Passwords/AuthenticateUsingSystemCredentials" ));
+ aNode[ 0 ] = rtl::OUString( "Office.Common/Passwords/AuthenticateUsingSystemCredentials" );
EnableNotification( aNode );
}
@@ -70,8 +69,7 @@ SysCredentialsConfigItem::getSystemCredentialsURLs()
{
// read config item
uno::Sequence< ::rtl::OUString > aPropNames( 1 );
- aPropNames[ 0 ] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "AuthenticateUsingSystemCredentials" ));
+ aPropNames[ 0 ] = rtl::OUString( "AuthenticateUsingSystemCredentials" );
uno::Sequence< uno::Any > aAnyValues(
utl::ConfigItem::GetProperties( aPropNames ) );
@@ -99,9 +97,7 @@ void SysCredentialsConfigItem::setSystemCredentialsURLs(
// write config item.
uno::Sequence< rtl::OUString > aPropNames( 1 );
uno::Sequence< uno::Any > aPropValues( 1 );
- aPropNames[ 0 ]
- = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "AuthenticateUsingSystemCredentials" ));
+ aPropNames[ 0 ] = ::rtl::OUString( "AuthenticateUsingSystemCredentials" );
aPropValues[ 0 ] <<= seqURLList;
utl::ConfigItem::SetModified();
@@ -123,7 +119,7 @@ namespace
if( aInd > 0 )
{
sal_Int32 aPrevInd = aURL.lastIndexOf( sal_Unicode( '/' ), aInd );
- if ( aURL.indexOf( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("://")) )
+ if ( aURL.indexOf( ::rtl::OUString("://") )
!= aPrevInd - 2 ||
aInd != aURL.getLength() - 1 )
{
@@ -157,7 +153,7 @@ namespace
{
::rtl::OUString tmpUrl( aUrl );
if ( tmpUrl.getStr()[tmpUrl.getLength() - 1] != (sal_Unicode)'/' )
- tmpUrl += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
+ tmpUrl += ::rtl::OUString("/");
aIter = rContainer.lower_bound( tmpUrl );
if( aIter != rContainer.end() && aIter->match( tmpUrl ) )