Micro optimization. calling one external function instead of two.
This commit is contained in:
parent
c3c718615d
commit
20c79023c8
|
@ -47,8 +47,8 @@ LvmDevice::LvmDevice(const QString& name, const QString& iconname)
|
||||||
{
|
{
|
||||||
m_peSize = logicalSize();
|
m_peSize = logicalSize();
|
||||||
m_totalPE = totalLogical();
|
m_totalPE = totalLogical();
|
||||||
m_allocPE = getAllocatedPE(name);
|
m_freePE = getFreePE(name);
|
||||||
m_freePE = totalLogical() - m_allocPE;
|
m_allocPE = m_totalPE - m_freePE;
|
||||||
m_UUID = getUUID(name);
|
m_UUID = getUUID(name);
|
||||||
|
|
||||||
initPartitions();
|
initPartitions();
|
||||||
|
|
Loading…
Reference in New Issue