summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-05 13:52:54 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-05 13:52:54 +0000
commitd1f3c1832ca3c8dc06545bee0e02a5c0979333a0 (patch)
treeccf77c6b6f0601ca786bd473cbc3f99329815a55 /src
parentbc7c3987e157e544a0eaa897a337c20361cd2458 (diff)
Small code tweak
Diffstat (limited to 'src')
-rw-r--r--src/coord.hh4
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]]