[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kleopatra/crypto/gui
From: Bertjan Broeksema <b.broeksema () home ! nl>
Date: 2009-07-09 7:04:54
Message-ID: 1247123094.001978.21632.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 993629 by bbroeksema:
Revert part of r993495 because Protocol is an enum. Let krazy ignore these lines.
M +6 -6 signerresolvepage.cpp
--- trunk/KDE/kdepim/kleopatra/crypto/gui/signerresolvepage.cpp #993628:993629
@@ -99,7 +99,7 @@
ReadOnlyProtocolSelectionWidget::ReadOnlyProtocolSelectionWidget( QWidget* p, \
Qt::WindowFlags f ) : AbstractSigningProtocolSelectionWidget( p, f ) { QVBoxLayout * \
const layout = new QVBoxLayout( this ); layout->setMargin( 0 );
- Q_FOREACH ( const Protocol& i, supportedProtocols() ) {
+ Q_FOREACH ( const Protocol i, supportedProtocols() ) { //krazy:exclude=foreach
QLabel * const l = new QLabel;
l->setText( formatLabel( i, Key() ) );
layout->addWidget( l );
@@ -121,7 +121,7 @@
std::vector<Protocol> ReadOnlyProtocolSelectionWidget::checkedProtocols() const {
std::vector<Protocol> res;
- Q_FOREACH( const Protocol& i, supportedProtocols() )
+ Q_FOREACH( const Protocol i, supportedProtocols() ) //krazy:exclude=foreach
if( isProtocolChecked( i ) )
res.push_back( i );
return res;
@@ -136,7 +136,7 @@
QVBoxLayout * const layout = new QVBoxLayout( this );
layout->setMargin( 0 );
- Q_FOREACH ( const Protocol& i, supportedProtocols() ) {
+ Q_FOREACH ( const Protocol i, supportedProtocols() ) { //krazy:exclude=foreach
QCheckBox * const b = new QCheckBox;
b->setText( formatLabel( i, Key() ) );
m_buttons[i] = b;
@@ -359,7 +359,7 @@
void SignerResolvePage::Private::setCertificates( const QMap<GpgME::Protocol, \
GpgME::Key>& certs ) {
certificates = certs;
- Q_FOREACH ( const Protocol& i, certs.keys() ) {
+ Q_FOREACH ( const Protocol i, certs.keys() ) { //krazy:exclude=foreach
const Key key = certs.value( i );
readOnlyProtocolSelectionWidget->setCertificate( i, key );
signingProtocolSelectionWidget->setCertificate( i, key );
@@ -536,7 +536,7 @@
void SignerResolvePage::setPresetProtocols( const std::vector<Protocol>& protocols )
{
d->presetProtocols = protocols;
- Q_FOREACH ( const Protocol& i, supportedProtocols() ) {
+ Q_FOREACH ( const Protocol i, supportedProtocols() ) { //krazy:exclude=foreach
const bool checked = std::find( protocols.begin(), protocols.end(), i ) != \
protocols.end();
d->signingProtocolSelectionWidget->setProtocolChecked( i, checked );
d->readOnlyProtocolSelectionWidget->setProtocolChecked( i, checked );
@@ -620,7 +620,7 @@
std::vector<Protocol> \
SignerResolvePage::selectedProtocolsWithoutSigningCertificate() const { \
std::vector<Protocol> res;
- Q_FOREACH ( const Protocol& i, selectedProtocols() )
+ Q_FOREACH ( const Protocol i, selectedProtocols() ) //krazy:exclude=foreach
if ( signingCertificates( i ).empty() )
res.push_back( i );
return res;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic