-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: https://bugs.gentoo.org/935121 Signed-off-by: David Roman <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
From c4fdeb206235e9c37f34b18f5463d1e0702b2c14 Mon Sep 17 00:00:00 2001 | ||
From: Hugues Delorme <[email protected]> | ||
Date: Thu, 25 Apr 2024 12:37:09 +0200 | ||
Subject: [PATCH] Base: fix missing <algorithm> header | ||
|
||
--- | ||
src/base/property.cpp | 2 ++ | ||
src/base/property_enumeration.cpp | 4 +++- | ||
2 files changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/base/property.cpp b/src/base/property.cpp | ||
index d98acb31..61b9c623 100644 | ||
--- a/src/base/property.cpp | ||
+++ b/src/base/property.cpp | ||
@@ -7,6 +7,8 @@ | ||
#include "property.h" | ||
|
||
#include "property_enumeration.h" | ||
+ | ||
+#include <algorithm> | ||
#include <cassert> | ||
|
||
namespace Mayo { | ||
diff --git a/src/base/property_enumeration.cpp b/src/base/property_enumeration.cpp | ||
index 556c3e8e..1ef57091 100644 | ||
--- a/src/base/property_enumeration.cpp | ||
+++ b/src/base/property_enumeration.cpp | ||
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8391289
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you forgot to remove the
BDEPEND
restriction.8391289
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, fixed in the next commit. Thank you!