From 21273de2382f07ca2c799fb800de189608bb5529 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 28 Apr 2013 22:32:32 +0200 Subject: fix compilation with vala 0.16 --- src/pdf-invoice/pdf-invoice.vala | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/pdf-invoice/pdf-invoice.vala') diff --git a/src/pdf-invoice/pdf-invoice.vala b/src/pdf-invoice/pdf-invoice.vala index 8a6242d..7e02b07 100644 --- a/src/pdf-invoice/pdf-invoice.vala +++ b/src/pdf-invoice/pdf-invoice.vala @@ -632,16 +632,15 @@ public class InvoicePDF { } public void clear() { - invoice_date = 0; - invoice_id = ""; - invoice_recipient = { - "", - "", - "", - "", - "", - "", - }; - invoice_entries = null; + invoice_date = 0; + invoice_id = ""; + invoice_recipient.firstname = ""; + invoice_recipient.lastname = ""; + invoice_recipient.street = ""; + invoice_recipient.postal_code = ""; + invoice_recipient.city = ""; + invoice_recipient.gender = ""; + + invoice_entries = null; } } -- cgit v1.2.3