summaryrefslogtreecommitdiff
path: root/src/wx/editable_list.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-21 01:15:32 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-21 01:15:32 +0100
commite60bb3e51bd1508b149e6b8f6608f09b5196ae26 (patch)
treea7a5b937c9ae138d4eebca8d5130d308bf9ae420 /src/wx/editable_list.h
parentf07d5125a7b609320682689abe40781f096ca25e (diff)
No-op: remove all trailing whitespace.
Diffstat (limited to 'src/wx/editable_list.h')
-rw-r--r--src/wx/editable_list.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wx/editable_list.h b/src/wx/editable_list.h
index c6cb28a45..be79f67e6 100644
--- a/src/wx/editable_list.h
+++ b/src/wx/editable_list.h
@@ -85,14 +85,14 @@ public:
void refresh ()
{
_list->DeleteAllItems ();
-
+
std::vector<T> current = _get ();
for (typename std::vector<T>::iterator i = current.begin (); i != current.end(); ++i) {
add_to_control (*i);
}
- }
+ }
-private:
+private:
void add_to_control (T item)
{
@@ -121,11 +121,11 @@ private:
dialog->ShowModal ();
add_to_control (dialog->get ());
-
+
std::vector<T> all = _get ();
all.push_back (dialog->get ());
_set (all);
-
+
dialog->Destroy ();
}
@@ -141,7 +141,7 @@ private:
T copy (all[item]);
add_to_control (copy);
-
+
all.push_back (copy);
_set (all);
}
@@ -161,7 +161,7 @@ private:
dialog->ShowModal ();
all[item] = dialog->get ();
dialog->Destroy ();
-
+
for (int i = 0; i < _columns; ++i) {
_list->SetItem (item, i, std_to_wx (_column (all[item], i)));
}
@@ -175,7 +175,7 @@ private:
if (i == -1) {
return;
}
-
+
_list->DeleteItem (i);
std::vector<T> all = _get ();
all.erase (all.begin() + i);