mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5101 clang-format: Allow short functions on a single line
Use AllowShortFunctionsOnASingleLine: InlineOnly
This commit is contained in:
@@ -159,23 +159,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
int years() const
|
||||
{
|
||||
return m_years;
|
||||
}
|
||||
int months() const
|
||||
{
|
||||
return m_months;
|
||||
}
|
||||
int days() const
|
||||
{
|
||||
return m_days;
|
||||
}
|
||||
int years() const { return m_years; }
|
||||
int months() const { return m_months; }
|
||||
int days() const { return m_days; }
|
||||
|
||||
bool isEmpty()
|
||||
{
|
||||
return m_years == 0 && m_months == 0 && m_days;
|
||||
}
|
||||
bool isEmpty() { return m_years == 0 && m_months == 0 && m_days; }
|
||||
|
||||
private:
|
||||
int m_years;
|
||||
|
||||
Reference in New Issue
Block a user