Micro optimization. calling one external function instead of two.

This commit is contained in:
Chantara Tith 2016-08-05 04:47:18 +07:00 committed by Andrius Štikonas
parent c3c718615d
commit 20c79023c8
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ LvmDevice::LvmDevice(const QString& name, const QString& iconname)
{
m_peSize = logicalSize();
m_totalPE = totalLogical();
m_allocPE = getAllocatedPE(name);
m_freePE = totalLogical() - m_allocPE;
m_freePE = getFreePE(name);
m_allocPE = m_totalPE - m_freePE;
m_UUID = getUUID(name);
initPartitions();