Make getFreePV const.
This commit is contained in:
parent
a10c8d3aaa
commit
799d213530
|
@ -307,7 +307,7 @@ QString lvm2_pv::getVGName(const QString& deviceNode)
|
||||||
return getpvField(QStringLiteral("vg_name"), deviceNode);
|
return getpvField(QStringLiteral("vg_name"), deviceNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList lvm2_pv::getFreePV()
|
const QStringList lvm2_pv::getFreePV()
|
||||||
{
|
{
|
||||||
QStringList rlist;
|
QStringList rlist;
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ public:
|
||||||
static QString getVGName(const QString& deviceNode);
|
static QString getVGName(const QString& deviceNode);
|
||||||
static QString getpvField(const QString& fieldname, const QString& deviceNode = QString());
|
static QString getpvField(const QString& fieldname, const QString& deviceNode = QString());
|
||||||
|
|
||||||
static QStringList getFreePV();
|
static const QStringList getFreePV();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CommandSupportType m_GetUsed;
|
static CommandSupportType m_GetUsed;
|
||||||
|
|
Loading…
Reference in New Issue