From f99432484eb77df0d0ea1871ed34ffb74b501fba Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Fri, 17 Sep 2021 07:38:35 +1000 Subject: Add noexcept and constexpr where reasonable. --- src/ViewStyle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 52ec793bc..de56c0895 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -86,7 +86,7 @@ struct WrapAppearance { struct EdgeProperties { int column = 0; ColourRGBA colour; - EdgeProperties(int column_ = 0, ColourRGBA colour_ = ColourRGBA::FromRGB(0)) noexcept : + constexpr EdgeProperties(int column_ = 0, ColourRGBA colour_ = ColourRGBA::FromRGB(0)) noexcept : column(column_), colour(colour_) { } }; -- cgit v1.2.3