[fsresizer] Remove over-enthusiastic constexpr

main
Adriaan de Groot 6 years ago
parent a40864f709
commit 45195b9f7e

@ -34,7 +34,7 @@ class PLUGINDLLEXPORT ResizeFSJob : public Calamares::CppJob
public:
/** @brief Size expressions
*
*
* Sizes can be specified in MiB or percent (of the device they
* are on). This class handles parsing of such strings from the
* config file.
@ -55,11 +55,11 @@ public:
int value() const { return m_value; }
Unit unit() const { return m_unit; }
constexpr bool isValid() const
bool isValid() const
{
return ( unit() != None ) && ( value() > 0 );
}
private:
int m_value;
Unit m_unit;
@ -74,12 +74,12 @@ public:
void setConfigurationMap( const QVariantMap& configurationMap ) override;
constexpr bool isValid() const
bool isValid() const
{
return ( !m_fsname.isEmpty() || !m_devicename.isEmpty() ) &&
m_size.isValid();
}
private:
RelativeSize m_size;
RelativeSize m_atleast;

Loading…
Cancel
Save