diff options
author | elfmz <fenix1905@tut.by> | 2022-02-20 20:39:43 +0300 |
---|---|---|
committer | elfmz <fenix1905@tut.by> | 2022-02-20 20:39:47 +0300 |
commit | c09bb983f598311b35ab3ab77d2f5ae74179ba44 (patch) | |
tree | 59c4ea8644ca889cdbb8314f318df29fc89e4261 /far2l/src/lang.hpp | |
parent | e0f3f14fb3d648ba640e75cf25e257ac8fde4865 (diff) |
fix using relative language message (fix #1273)
Diffstat (limited to 'far2l/src/lang.hpp')
-rw-r--r-- | far2l/src/lang.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/far2l/src/lang.hpp b/far2l/src/lang.hpp index 696f0e8c..675849c9 100644 --- a/far2l/src/lang.hpp +++ b/far2l/src/lang.hpp @@ -51,8 +51,8 @@ struct FarLangMsg inline const wchar_t *CPtr() const { return GetMsg(_id); } inline operator const wchar_t *() const { return GetMsg(_id); } - inline FarLangMsg operator+ (int delta) { return FarLangMsg{_id + delta}; } - inline FarLangMsg operator- (int delta) { return FarLangMsg{_id - delta}; } + inline FarLangMsg operator+ (int delta) const { return FarLangMsg{_id + delta}; } + inline FarLangMsg operator- (int delta) const { return FarLangMsg{_id - delta}; } inline bool operator == (const FarLangMsg other) const { return _id == other._id; } inline bool operator == (const FarLangMsgID other_id) const { return _id == other_id; } |