Skip to content

Commit 2cd9ac6

Browse files
committed
mark editline::empty() const
1 parent 193468c commit 2cd9ac6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/engine/interface/textedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ inline void text_pos(const char *str, int cursor, int &cx, int &cy, int maxwidth
3737
cy = static_cast<int>(cyf);
3838
}
3939

40-
bool EditLine::empty()
40+
bool EditLine::empty() const
4141
{
4242
return len <= 0;
4343
}

src/engine/interface/textedit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct EditLine final
1414
set(init);
1515
}
1616

17-
bool empty();
17+
bool empty() const;
1818
void clear();
1919
bool grow(int total, const char *fmt = "", ...);
2020
void set(const char *str, int slen = -1);

0 commit comments

Comments
 (0)