Small code tweak

This commit is contained in:
Maxime Coste 2015-03-05 13:52:54 +00:00
parent bc7c3987e1
commit d1f3c1832c

View File

@ -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]]