Small code tweak
This commit is contained in:
parent
bc7c3987e1
commit
d1f3c1832c
|
@ -20,7 +20,7 @@ struct LineAndColumn
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
constexpr EffectiveType operator+(EffectiveType other) const
|
constexpr EffectiveType operator+(EffectiveType other) const
|
||||||
{
|
{
|
||||||
return EffectiveType(line + other.line, column + other.column);
|
return {line + other.line, column + other.column};
|
||||||
}
|
}
|
||||||
|
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
|
@ -34,7 +34,7 @@ struct LineAndColumn
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
constexpr EffectiveType operator-(EffectiveType other) const
|
constexpr EffectiveType operator-(EffectiveType other) const
|
||||||
{
|
{
|
||||||
return EffectiveType(line - other.line, column - other.column);
|
return {line - other.line, column - other.column};
|
||||||
}
|
}
|
||||||
|
|
||||||
[[gnu::always_inline]]
|
[[gnu::always_inline]]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user