fixed build
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
492bf373c6
commit
1eb75b6852
@ -8,7 +8,6 @@
|
|||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
#include <sys.h>
|
#include <sys.h>
|
||||||
|
|
||||||
@ -187,12 +186,20 @@ QString JavaSettingsWidget::javaPath() const
|
|||||||
|
|
||||||
int JavaSettingsWidget::maxHeapSize() const
|
int JavaSettingsWidget::maxHeapSize() const
|
||||||
{
|
{
|
||||||
return std::max(m_minMemSpinBox->value(), m_maxMemSpinBox->value());
|
auto min = m_minMemSpinBox->value();
|
||||||
|
auto max = m_maxMemSpinBox->value();
|
||||||
|
if (max < min)
|
||||||
|
max = min;
|
||||||
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
int JavaSettingsWidget::minHeapSize() const
|
int JavaSettingsWidget::minHeapSize() const
|
||||||
{
|
{
|
||||||
return std::min(m_minMemSpinBox->value(), m_maxMemSpinBox->value());
|
auto min = m_minMemSpinBox->value();
|
||||||
|
auto max = m_maxMemSpinBox->value();
|
||||||
|
if (min > max)
|
||||||
|
min = max;
|
||||||
|
return min;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool JavaSettingsWidget::permGenEnabled() const
|
bool JavaSettingsWidget::permGenEnabled() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user