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.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx
index fc70088bf371..66efc892cd65 100644
--- a/svl/source/passwordcontainer/syscreds.cxx
+++ b/svl/source/passwordcontainer/syscreds.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -32,14 +33,14 @@ using namespace com::sun::star;
SysCredentialsConfigItem::SysCredentialsConfigItem(
SysCredentialsConfig * pOwner )
-: utl::ConfigItem( rtl::OUString::createFromAscii( "Office.Common/Passwords" ),
+: utl::ConfigItem( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Passwords")),
CONFIG_MODE_IMMEDIATE_UPDATE ),
m_bInited( false ),
m_pOwner( pOwner )
{
uno::Sequence< ::rtl::OUString > aNode( 1 );
- aNode[ 0 ] = rtl::OUString::createFromAscii(
- "Office.Common/Passwords/AuthenticateUsingSystemCredentials" );
+ aNode[ 0 ] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "Office.Common/Passwords/AuthenticateUsingSystemCredentials" ));
EnableNotification( aNode );
}
@@ -69,8 +70,8 @@ SysCredentialsConfigItem::getSystemCredentialsURLs()
{
// read config item
uno::Sequence< ::rtl::OUString > aPropNames( 1 );
- aPropNames[ 0 ] = rtl::OUString::createFromAscii(
- "AuthenticateUsingSystemCredentials" );
+ aPropNames[ 0 ] = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "AuthenticateUsingSystemCredentials" ));
uno::Sequence< uno::Any > aAnyValues(
utl::ConfigItem::GetProperties( aPropNames ) );
@@ -99,8 +100,8 @@ void SysCredentialsConfigItem::setSystemCredentialsURLs(
uno::Sequence< rtl::OUString > aPropNames( 1 );
uno::Sequence< uno::Any > aPropValues( 1 );
aPropNames[ 0 ]
- = ::rtl::OUString::createFromAscii(
- "AuthenticateUsingSystemCredentials" );
+ = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "AuthenticateUsingSystemCredentials" ));
aPropValues[ 0 ] <<= seqURLList;
utl::ConfigItem::SetModified();
@@ -122,7 +123,7 @@ namespace
if( aInd > 0 )
{
sal_Int32 aPrevInd = aURL.lastIndexOf( sal_Unicode( '/' ), aInd );
- if ( aURL.indexOf( ::rtl::OUString::createFromAscii( "://" ) )
+ if ( aURL.indexOf( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("://")) )
!= aPrevInd - 2 ||
aInd != aURL.getLength() - 1 )
{
@@ -156,7 +157,7 @@ namespace
{
::rtl::OUString tmpUrl( aUrl );
if ( tmpUrl.getStr()[tmpUrl.getLength() - 1] != (sal_Unicode)'/' )
- tmpUrl += ::rtl::OUString::createFromAscii( "/" );
+ tmpUrl += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
aIter = rContainer.lower_bound( tmpUrl );
if( aIter != rContainer.end() && aIter->match( tmpUrl ) )
@@ -298,3 +299,5 @@ void SysCredentialsConfig::persistentConfigChanged()
::osl::MutexGuard aGuard( m_aMutex );
m_bCfgInited = false; // re-init on demand.
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */