summaryrefslogtreecommitdiffstats
path: root/src/pdf-invoice
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-04-28 22:32:32 +0200
committerSebastian Reichel <sre@ring0.de>2013-04-28 22:32:32 +0200
commit21273de2382f07ca2c799fb800de189608bb5529 (patch)
treea7ea2cf5ad7cef6fa74f44d1bbb3c62a0a52d1d6 /src/pdf-invoice
parent36cf19638ec05693c88bd6b984e3691769c85803 (diff)
downloadserial-barcode-scanner-21273de2382f07ca2c799fb800de189608bb5529.tar.bz2
fix compilation with vala 0.16
Diffstat (limited to 'src/pdf-invoice')
-rw-r--r--src/pdf-invoice/pdf-invoice.vala21
1 files changed, 10 insertions, 11 deletions
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;
}
}