diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 12:48:05 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 12:48:05 +0100 |
| commit | 08d42688d851eb134da496be721e234f53ff8d0b (patch) | |
| tree | 5c8a448a42cd8ec4dc35c55edef85f0063b9a50a /tests/test_helper.cpp | |
| parent | ccbc6a8f0836583fabd59919bd7930d7cfe1473e (diff) | |
fix warnings
Diffstat (limited to 'tests/test_helper.cpp')
| -rw-r--r-- | tests/test_helper.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_helper.cpp b/tests/test_helper.cpp index ada084b..9dc9898 100644 --- a/tests/test_helper.cpp +++ b/tests/test_helper.cpp @@ -19,11 +19,11 @@ static contact _create_nl_business() { contact pw = administration::contact_create_empty(); strops::copy(pw.name, "Dutch Company BV", sizeof(pw.name)); - strops::copy(pw.address.address1, "Address 1", sizeof(pw.address.address1)); - strops::copy(pw.address.country_code, "NL", sizeof(pw.address.country_code)); - strops::copy(pw.address.city, "Amsterdam", sizeof(pw.address.city)); - strops::copy(pw.address.region, "Noord-Holland", sizeof(pw.address.region)); - strops::copy(pw.address.postal, "1234AA", sizeof(pw.address.postal)); + strops::copy(pw.addr.address1, "Address 1", sizeof(pw.addr.address1)); + strops::copy(pw.addr.country_code, "NL", sizeof(pw.addr.country_code)); + strops::copy(pw.addr.city, "Amsterdam", sizeof(pw.addr.city)); + strops::copy(pw.addr.region, "Noord-Holland", sizeof(pw.addr.region)); + strops::copy(pw.addr.postal, "1234AA", sizeof(pw.addr.postal)); strops::copy(pw.taxid, "T123", sizeof(pw.taxid)); strops::copy(pw.businessid, "B321", sizeof(pw.businessid)); strops::copy(pw.email, "test@test.com", sizeof(pw.email)); @@ -37,11 +37,11 @@ static contact _create_nl_consumer() { contact pw = administration::contact_create_empty(); strops::copy(pw.name, "Piet Pinda", sizeof(pw.name)); - strops::copy(pw.address.address1, "Address 2", sizeof(pw.address.address1)); - strops::copy(pw.address.country_code, "NL", sizeof(pw.address.country_code)); - strops::copy(pw.address.city, "Maastricht", sizeof(pw.address.city)); - strops::copy(pw.address.region, "Limburg", sizeof(pw.address.region)); - strops::copy(pw.address.postal, "4321AA", sizeof(pw.address.postal)); + strops::copy(pw.addr.address1, "Address 2", sizeof(pw.addr.address1)); + strops::copy(pw.addr.country_code, "NL", sizeof(pw.addr.country_code)); + strops::copy(pw.addr.city, "Maastricht", sizeof(pw.addr.city)); + strops::copy(pw.addr.region, "Limburg", sizeof(pw.addr.region)); + strops::copy(pw.addr.postal, "4321AA", sizeof(pw.addr.postal)); strops::copy(pw.email, "test@test.com", sizeof(pw.email)); strops::copy(pw.phone_number, "+317654321", sizeof(pw.phone_number)); pw.type = contact_type::CONTACT_CONSUMER; |
