Skip to content
Permalink
Browse files

Fix indentation

  • Loading branch information
m-kuhn committed Apr 12, 2016
1 parent 1eb6376 commit f7354ffb928861e7d8defbd6bf6696e51c0dd7f8
Showing with 24 additions and 24 deletions.
  1. +24 −24 src/core/qgsfield.cpp
@@ -442,43 +442,43 @@ bool QgsFields::operator==( const QgsFields &other ) const
QgsFields::const_iterator QgsFields::constBegin() const noexcept
{
if ( d->fields.isEmpty() )
return const_iterator();
return const_iterator();

return const_iterator( &d->fields.first() );
}

QgsFields::const_iterator QgsFields::constEnd() const noexcept
{
if ( d->fields.isEmpty() )
{
if ( d->fields.isEmpty() )
return const_iterator();

return const_iterator( &d->fields.last() + 1 );
}
return const_iterator( &d->fields.last() + 1 );
}

QgsFields::const_iterator QgsFields::begin() const noexcept
{
if ( d->fields.isEmpty() )
return const_iterator();
QgsFields::const_iterator QgsFields::begin() const noexcept
{
if ( d->fields.isEmpty() )
return const_iterator();

return const_iterator( &d->fields.first() );
}
return const_iterator( &d->fields.first() );
}

QgsFields::const_iterator QgsFields::end() const noexcept
{
if ( d->fields.isEmpty() )
return const_iterator();
QgsFields::const_iterator QgsFields::end() const noexcept
{
if ( d->fields.isEmpty() )
return const_iterator();

return const_iterator( &d->fields.last() + 1 );
}
return const_iterator( &d->fields.last() + 1 );
}

QgsFields::iterator QgsFields::begin()
{
if ( d->fields.isEmpty() )
return iterator();
QgsFields::iterator QgsFields::begin()
{
if ( d->fields.isEmpty() )
return iterator();

d.detach();
return iterator( &d->fields.first() );
}
d.detach();
return iterator( &d->fields.first() );
}

QgsFields::iterator QgsFields::end()
{

0 comments on commit f7354ff

Please sign in to comment.
You can’t perform that action at this time.