diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-05 13:52:54 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-05 13:52:54 +0000 |
| commit | d1f3c1832ca3c8dc06545bee0e02a5c0979333a0 (patch) | |
| tree | ccf77c6b6f0601ca786bd473cbc3f99329815a55 /src | |
| parent | bc7c3987e157e544a0eaa897a337c20361cd2458 (diff) | |
Small code tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/coord.hh | 4 |
1 files 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]] |
