From d1f3c1832ca3c8dc06545bee0e02a5c0979333a0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 5 Mar 2015 13:52:54 +0000 Subject: [PATCH] Small code tweak --- src/coord.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coord.hh b/src/coord.hh index ed9347a5..aae08ba9 100644 --- a/src/coord.hh +++ b/src/coord.hh @@ -20,7 +20,7 @@ struct LineAndColumn [[gnu::always_inline]] constexpr EffectiveType operator+(EffectiveType other) const { - return EffectiveType(line + other.line, column + other.column); + return {line + other.line, column + other.column}; } [[gnu::always_inline]] @@ -34,7 +34,7 @@ struct LineAndColumn [[gnu::always_inline]] constexpr EffectiveType operator-(EffectiveType other) const { - return EffectiveType(line - other.line, column - other.column); + return {line - other.line, column - other.column}; } [[gnu::always_inline]]