summaryrefslogtreecommitdiff
path: root/test/editor.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-16 21:05:33 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-11-16 21:25:19 +0100
commit5810edaf84707563b452bd0e4b6120909b8ef3ea (patch)
tree588d26ae856230d31277bd5c55094167f1f615b8 /test/editor.cxx
parentf0ff8a508390b0cc809c56297d66dd7a60fd0132 (diff)
Fix remaining VS compiler warnings in test programs
Diffstat (limited to 'test/editor.cxx')
-rw-r--r--test/editor.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/editor.cxx b/test/editor.cxx
index 3170362b3..eb45de7aa 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -658,8 +658,8 @@ void find2_cb(Fl_Widget* w, void* v) {
int found = textbuf->search_forward(pos, e->search, &pos);
if (found) {
// Found a match; select and update the position...
- textbuf->select(pos, pos+strlen(e->search));
- e->editor->insert_position(pos+strlen(e->search));
+ textbuf->select(pos, pos + (int)strlen(e->search));
+ e->editor->insert_position(pos + (int)strlen(e->search));
e->editor->show_insert_position();
}
else fl_alert("No occurrences of \'%s\' found!", e->search);
@@ -773,11 +773,11 @@ void replace2_cb(Fl_Widget*, void* v) {
if (found) {
// Found a match; update the position and replace text...
- textbuf->select(pos, pos+strlen(find));
+ textbuf->select(pos, pos + (int)strlen(find));
textbuf->remove_selection();
textbuf->insert(pos, replace);
- textbuf->select(pos, pos+strlen(replace));
- e->editor->insert_position(pos+strlen(replace));
+ textbuf->select(pos, pos + (int)strlen(replace));
+ e->editor->insert_position(pos + (int)strlen(replace));
e->editor->show_insert_position();
}
else fl_alert("No occurrences of \'%s\' found!", find);
@@ -807,10 +807,10 @@ void replall_cb(Fl_Widget*, void* v) {
if (found) {
// Found a match; update the position and replace text...
- textbuf->select(pos, pos+strlen(find));
+ textbuf->select(pos, pos + (int)strlen(find));
textbuf->remove_selection();
textbuf->insert(pos, replace);
- e->editor->insert_position(pos+strlen(replace));
+ e->editor->insert_position(pos + (int)strlen(replace));
e->editor->show_insert_position();
times++;
}