Remove non-static data member initializers
This commit is contained in:
parent
59415d5a5f
commit
1f95a23fd4
@ -366,3 +366,7 @@ QString Udisks2Lister::PartitionData::unique_id() const {
|
|||||||
.arg(capacity)
|
.arg(capacity)
|
||||||
.arg(uuid);
|
.arg(uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Udisks2Lister::Udisks2Job::Udisks2Job() : is_mount(true) {}
|
||||||
|
|
||||||
|
Udisks2Lister::PartitionData::PartitionData() : capacity(0), free_space(0) {}
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
#include <QReadWriteLock>
|
#include <QReadWriteLock>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include "devicelister.h"
|
|
||||||
#include "dbus/metatypes.h"
|
#include "dbus/metatypes.h"
|
||||||
|
#include "devicelister.h"
|
||||||
|
|
||||||
class OrgFreedesktopDBusObjectManagerInterface;
|
class OrgFreedesktopDBusObjectManagerInterface;
|
||||||
class OrgFreedesktopUDisks2JobInterface;
|
class OrgFreedesktopUDisks2JobInterface;
|
||||||
@ -71,7 +71,8 @@ class Udisks2Lister : public DeviceLister {
|
|||||||
const QDBusArgument& input);
|
const QDBusArgument& input);
|
||||||
|
|
||||||
struct Udisks2Job {
|
struct Udisks2Job {
|
||||||
bool is_mount = true;
|
Udisks2Job();
|
||||||
|
bool is_mount;
|
||||||
QList<QDBusObjectPath> mounted_partitions;
|
QList<QDBusObjectPath> mounted_partitions;
|
||||||
std::shared_ptr<OrgFreedesktopUDisks2JobInterface> dbus_interface;
|
std::shared_ptr<OrgFreedesktopUDisks2JobInterface> dbus_interface;
|
||||||
};
|
};
|
||||||
@ -81,6 +82,8 @@ class Udisks2Lister : public DeviceLister {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
struct PartitionData {
|
struct PartitionData {
|
||||||
|
PartitionData();
|
||||||
|
|
||||||
QString unique_id() const;
|
QString unique_id() const;
|
||||||
|
|
||||||
QString dbus_path;
|
QString dbus_path;
|
||||||
@ -90,13 +93,13 @@ class Udisks2Lister : public DeviceLister {
|
|||||||
QString serial;
|
QString serial;
|
||||||
QString vendor;
|
QString vendor;
|
||||||
QString model;
|
QString model;
|
||||||
quint64 capacity = 0;
|
quint64 capacity;
|
||||||
QString dbus_drive_path;
|
QString dbus_drive_path;
|
||||||
|
|
||||||
// Paritition
|
// Paritition
|
||||||
QString label;
|
QString label;
|
||||||
QString uuid;
|
QString uuid;
|
||||||
quint64 free_space = 0;
|
quint64 free_space;
|
||||||
QStringList mount_paths;
|
QStringList mount_paths;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user