mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
Use good old C++ template instead of auto parameter which needs C++1y.
This commit is contained in:
parent
961eadada4
commit
ce407a5ec4
2 changed files with 7 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
|||
#include <QMouseEvent>
|
||||
#include <QStyleOption>
|
||||
|
||||
|
||||
static const int VIEW_HEIGHT = 30;
|
||||
static const int CORNER_RADIUS = 3;
|
||||
static const int EXTENDED_PARTITION_MARGIN = 4;
|
||||
|
@ -400,9 +401,10 @@ PartitionSplitterWidget::drawPartitions( QPainter* painter,
|
|||
}
|
||||
|
||||
|
||||
template < typename F >
|
||||
PartitionSplitterItem*
|
||||
PartitionSplitterWidget::_findItem( QList< PartitionSplitterItem >& items,
|
||||
auto condition )
|
||||
F condition )
|
||||
{
|
||||
for ( auto it = items.begin(); it != items.end(); ++it)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue