[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kldap (silent)
From: Allen Winter <winter () kde ! org>
Date: 2008-12-31 22:54:13
Message-ID: 1230764053.063835.15602.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 903964 by winterz:
coding style fixes
SVN_SILENT:
M +4 -2 ldapconfigwidget.cpp
M +20 -18 ldapurl.cpp
--- trunk/KDE/kdepimlibs/kldap/ldapconfigwidget.cpp #903963:903964
@@ -494,14 +494,16 @@
void LdapConfigWidget::Private::setLDAPPort()
{
- if ( mPort )
+ if ( mPort ) {
mPort->setValue( 389 );
+ }
}
void LdapConfigWidget::Private::setLDAPSPort()
{
- if ( mPort )
+ if ( mPort ) {
mPort->setValue( 636 );
+ }
}
LdapConfigWidget::LdapConfigWidget( QWidget *parent, Qt::WFlags fl )
--- trunk/KDE/kdepimlibs/kldap/ldapurl.cpp #903963:903964
@@ -258,29 +258,31 @@
d->m_extensions.clear();
int i = 0;
- for ( QStringList::const_iterator it = url_items.constBegin(); it != \
url_items.constEnd(); ++it, i++ ) { + for ( QStringList::const_iterator \
it=url_items.constBegin(); + it != url_items.constEnd(); ++it, i++ ) {
switch ( i ) {
- case 0:
- d->m_attributes = (*it).split( ',', QString::SkipEmptyParts );
- break;
- case 1:
- if ( (*it) == "sub" ) {
- d->m_scope = Sub;
- } else if ( (*it) == "one" ) {
- d->m_scope = One;
- }
- break;
- case 2:
- d->m_filter = fromPercentEncoding( (*it).toLatin1() );
- break;
- case 3:
- extensions = (*it).split( ',', QString::SkipEmptyParts );
- break;
+ case 0:
+ d->m_attributes = (*it).split( ',', QString::SkipEmptyParts );
+ break;
+ case 1:
+ if ( (*it) == "sub" ) {
+ d->m_scope = Sub;
+ } else if ( (*it) == "one" ) {
+ d->m_scope = One;
+ }
+ break;
+ case 2:
+ d->m_filter = fromPercentEncoding( (*it).toLatin1() );
+ break;
+ case 3:
+ extensions = (*it).split( ',', QString::SkipEmptyParts );
+ break;
}
}
QString name, value;
- for ( QStringList::const_iterator it = extensions.constBegin(); it != \
extensions.constEnd(); ++it ) { + for ( QStringList::const_iterator \
it=extensions.constBegin(); + it != extensions.constEnd(); ++it ) {
ext.critical = false;
name = fromPercentEncoding( (*it).section( '=', 0, 0 ).toLatin1() ).toLower();
value = fromPercentEncoding( (*it).section( '=', 1 ).toLatin1() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic