- if (intType = 0){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("")));
-
- } else if (intType = 1){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("home")));
-
- } else if (intType = 2){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("work")));
-
- }
-
+ switch (intType){
+ case 0: KeyListType.insert(std::make_pair(intValueSeek, wxT("")));
+ case 1: KeyListType.insert(std::make_pair(intValueSeek, wxT("home")));
+ case 2: KeyListType.insert(std::make_pair(intValueSeek, wxT("work")));
+ }
+