summaryrefslogtreecommitdiff
path: root/src/ui/ui_contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_contacts.cpp')
-rw-r--r--src/ui/ui_contacts.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp
index cc5a7e0..ff1f424 100644
--- a/src/ui/ui_contacts.cpp
+++ b/src/ui/ui_contacts.cpp
@@ -14,13 +14,14 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "strops.hpp"
-#include "config.hpp"
#include "ui.hpp"
#include "imgui.h"
+#include "strops.hpp"
+#include "config.hpp"
+#include "memops.hpp"
+#include "locales.hpp"
#include "administration.hpp"
#include "administration_writer.hpp"
-#include "locales.hpp"
static ui::view_state current_view_state = ui::view_state::LIST_ALL;
static contact selected_for_removal;
@@ -42,7 +43,7 @@ void ui::setup_contacts()
{
current_view_state = ui::view_state::LIST_ALL;
active_contact = active_contact = administration::contact_create_empty();
- memset(&selected_for_removal, 0, sizeof(contact));
+ memops::zero(&selected_for_removal, sizeof(contact));
}
void draw_addressee_form_ex(delivery_info* buffer, bool viewing_only = false)