summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-06 18:12:40 +0500
commitb4995f979d127cea667b4e2b71c91e9db4ab52ef (patch)
treefbebc775e10932bace8d6a7c3481b1ba200c64db /src/Fl_Input_.cxx
parent9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (diff)
wip
Diffstat (limited to 'src/Fl_Input_.cxx')
-rw-r--r--src/Fl_Input_.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index c052de10d..e06942539 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -109,7 +109,8 @@ public:
void clear() {
if (list_) {
- for (int i=0; i<list_size_; i++) {
+ int i;
+ for (i =0; i<list_size_; i++) {
delete list_[i];
}
::free(list_);
@@ -581,7 +582,8 @@ int Fl_Input_::line_end(int i) const {
while (j > 0 && index(j-1) != '\n') j--;
// now measure lines until we get past i, end of that line is real eol:
setfont();
- for (const char* p=value()+j; ;) {
+ const char *p;
+ for (p =value()+j; ;) {
char buf[MAXBUF];
p = expand(p, buf);
int k = (int) (p-value());
@@ -610,7 +612,8 @@ int Fl_Input_::line_start(int i) const {
if (wrap()) {
// now measure lines until we get past i, start of that line is real eol:
setfont();
- for (const char* p=value()+j; ;) {
+ const char *p;
+ for (p =value()+j; ;) {
char buf[MAXBUF];
const char* e = expand(p, buf);
if ((int) (e-value()) >= i) return (int) (p-value());