[partition] Improve type-constness
- Don't bother copying the vector of available PVs, we need the contained pointers.
This commit is contained in:
parent
7806ccbe72
commit
b55a6cf716
@ -1,6 +1,7 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2018, Caio Jordão Carvalho <caiojcarvalho@gmail.com>
|
* Copyright 2018, Caio Jordão Carvalho <caiojcarvalho@gmail.com>
|
||||||
|
* Copyright 2019, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -29,8 +30,8 @@
|
|||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
|
|
||||||
ResizeVolumeGroupDialog::ResizeVolumeGroupDialog( LvmDevice *device,
|
ResizeVolumeGroupDialog::ResizeVolumeGroupDialog( LvmDevice *device,
|
||||||
QVector< const Partition* > availablePVs,
|
const PartitionVector& availablePVs,
|
||||||
QVector< const Partition* >& selectedPVs,
|
PartitionVector& selectedPVs,
|
||||||
QWidget* parent )
|
QWidget* parent )
|
||||||
: VolumeGroupBaseDialog( device->name(), device->physicalVolumes(), parent )
|
: VolumeGroupBaseDialog( device->name(), device->physicalVolumes(), parent )
|
||||||
, m_selectedPVs( selectedPVs )
|
, m_selectedPVs( selectedPVs )
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2018, Caio Jordão Carvalho <caiojcarvalho@gmail.com>
|
* Copyright 2018, Caio Jordão Carvalho <caiojcarvalho@gmail.com>
|
||||||
|
* Copyright 2019, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -26,15 +27,17 @@ class LvmDevice;
|
|||||||
class ResizeVolumeGroupDialog : public VolumeGroupBaseDialog
|
class ResizeVolumeGroupDialog : public VolumeGroupBaseDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
using PartitionVector = QVector< const Partition* >;
|
||||||
|
|
||||||
ResizeVolumeGroupDialog( LvmDevice *device,
|
ResizeVolumeGroupDialog( LvmDevice *device,
|
||||||
QVector< const Partition* > availablePVs,
|
const PartitionVector& availablePVs,
|
||||||
QVector< const Partition* >& selectedPVs,
|
PartitionVector& selectedPVs,
|
||||||
QWidget* parent );
|
QWidget* parent );
|
||||||
|
|
||||||
void accept() override;
|
void accept() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QVector< const Partition* >& m_selectedPVs;
|
PartitionVector& m_selectedPVs;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // RESIZEVOLUMEGROUPDIALOG_H
|
#endif // RESIZEVOLUMEGROUPDIALOG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user