Skip to content

Commit

Permalink
Base: fix missing <algorithm> header
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Apr 25, 2024
1 parent 4d7f95b commit c4fdeb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/base/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "property.h"

#include "property_enumeration.h"

#include <algorithm>
#include <cassert>

namespace Mayo {
Expand Down
4 changes: 3 additions & 1 deletion src/base/property_enumeration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@

#include "property_enumeration.h"

#include <algorithm>
#include <stdexcept>

namespace Mayo {

PropertyEnumeration::PropertyEnumeration(
PropertyGroup* grp, const TextId& name, const Enumeration* enumeration)
PropertyGroup* grp, const TextId& name, const Enumeration* enumeration
)
: Property(grp, name),
m_enumeration(enumeration),
m_value(enumeration && enumeration->empty() ? enumeration->itemAt(0).value : -1)
Expand Down

0 comments on commit c4fdeb2

Please sign in to comment.