Commit 004b81c4 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

modernize: delete redundant return statements

Summary:
All these return statements are at the end of functions which return
nothing.

Reviewers: #breeze, mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11638
parent f632fdc8
......@@ -185,8 +185,7 @@ namespace Breeze
}
return;
}
//_______________________________________________________________________________
......
......@@ -99,8 +99,6 @@ namespace Breeze
m_ui.windowTitle->setText( m_info->name() );
emit detectionDone( exec() == QDialog::Accepted );
return;
}
//_________________________________________________________
......
......@@ -142,7 +142,6 @@ namespace Breeze
}
resizeColumns();
return;
}
......@@ -181,8 +180,6 @@ namespace Breeze
setChanged( true );
return;
}
//_______________________________________________________
......@@ -204,8 +201,6 @@ namespace Breeze
setChanged( true );
return;
}
//_______________________________________________________
......@@ -219,7 +214,6 @@ namespace Breeze
InternalSettingsPtr exception( model().get( index ) );
exception->setEnabled( !exception->enabled() );
setChanged( true );
return;
}
......@@ -265,8 +259,6 @@ namespace Breeze
setChanged( true );
return;
}
//_______________________________________________________
......@@ -317,8 +309,6 @@ namespace Breeze
setChanged( true );
return;
}
//_______________________________________________________
......
......@@ -207,7 +207,6 @@ namespace Breeze
emit layoutAboutToBeChanged();
_remove( value );
emit layoutChanged();
return;
}
......@@ -223,7 +222,6 @@ namespace Breeze
for( typename List::const_iterator iter = values.begin(); iter != values.end(); iter++ )
{ _remove( *iter ); }
emit layoutChanged();
return;
}
......@@ -281,9 +279,7 @@ namespace Breeze
_selection.clear();
privateSort();
emit layoutChanged();
return;
}
}
//! return all values
const List& get( void ) const
......
......@@ -191,8 +191,7 @@ namespace Breeze
if( QStackedWidget* stack = qobject_cast<QStackedWidget*>( widget ) )
{ _stackedWidgetEngine->registerWidget( stack ); }
return;
}
//____________________________________________________________
......
......@@ -110,8 +110,7 @@ namespace Breeze
}
return;
}
......
......@@ -303,7 +303,6 @@ namespace Breeze
}
p.end();
return;
}
}
}
......@@ -341,8 +341,6 @@ namespace Breeze
painter.setCompositionMode( QPainter::CompositionMode_SourceOver );
_helper.renderFrame( &painter, rect, QColor(), outline );
return;
}
//____________________________________________________________________________________
......
......@@ -475,8 +475,7 @@ namespace Breeze
}
painter->restore();
return;
}
}
//______________________________________________________________________________
void Helper::renderFocusLine( QPainter* painter, const QRect& rect, const QColor& color ) const
......@@ -762,8 +761,6 @@ namespace Breeze
painter->translate( baseRect.topLeft() );
painter->drawPath( path );
return;
}
//______________________________________________________________________________
......@@ -835,8 +832,7 @@ namespace Breeze
}
return;
}
//______________________________________________________________________________
......@@ -1054,8 +1050,7 @@ namespace Breeze
painter->drawRoundedRect( baseRect, radius, radius );
}
return;
}
//______________________________________________________________________________
......@@ -1080,8 +1075,7 @@ namespace Breeze
painter->drawEllipse( grooveRect );
}
return;
}
//______________________________________________________________________________
......@@ -1120,8 +1114,7 @@ namespace Breeze
}
return;
}
//______________________________________________________________________________
......@@ -1188,8 +1181,7 @@ namespace Breeze
painter->drawRoundedRect( baseRect, radius, radius );
}
return;
}
......@@ -1246,8 +1238,6 @@ namespace Breeze
painter->setBrush( pixmap );
painter->drawRoundedRect( baseRect, radius, radius );
return;
}
//______________________________________________________________________________
......@@ -1270,8 +1260,7 @@ namespace Breeze
painter->drawRoundedRect( baseRect, radius, radius );
}
return;
}
//______________________________________________________________________________
......@@ -1327,9 +1316,7 @@ namespace Breeze
painter->setPen( QPen( color, 1.1 ) );
painter->drawPolyline( arrow );
painter->restore();
return;
}
}
//______________________________________________________________________________
void Helper::renderDecorationButton( QPainter* painter, const QRect& rect, const QColor& color, ButtonType buttonType, bool inverted ) const
......@@ -1413,7 +1400,6 @@ namespace Breeze
}
painter->restore();
return;
}
......
......@@ -229,7 +229,6 @@ namespace Breeze
// create new shadow
auto windowShadow( new MdiWindowShadow( widget->parentWidget(), _shadowTiles ) );
windowShadow->setWidget( widget );
return;
}
......
......@@ -50,8 +50,7 @@ namespace Breeze
}
return;
}
//____________________________________________________
......
......@@ -6678,8 +6678,6 @@ namespace Breeze
// render
_helper->renderArrow( painter, arrowRect, color, orientation );
return;
}
//______________________________________________________________________________
......
......@@ -871,8 +871,6 @@ namespace Breeze
_dragInProgress = true;
return;
}
//_______________________________________________________
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment