From 592e75d484a87cb0cf24f8acc1a80cf7903c6e9c Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 23 Jul 2014 18:18:46 +0400 Subject: [PATCH] Use Vala's 'is' syntax instead of .get_type().name(). --- test/LTableTest.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/LTableTest.vala b/test/LTableTest.vala index 2e25d86..1d930c9 100644 --- a/test/LTableTest.vala +++ b/test/LTableTest.vala @@ -44,7 +44,7 @@ public class Main : Object { foreach (var subdoc in doc) { stdout.printf ("%s\n", subdoc.get_type ().name ()); - if (subdoc.get_type ().name () == "LAviewTableLongtable") { + if (subdoc is Table.Longtable) { var ltable = subdoc as Table.Longtable; if (args[3] == "rm0row") { @@ -80,7 +80,7 @@ public class Main : Object { stdout.printf ("Incorrect operation '%s' specified.\n", args[3]); return -1; } - } else if (subdoc.get_type ().name () == "LAviewTableTabular") { + } else if (subdoc is Table.Tabular) { if (args[3] == "append_row0") { var tabular = subdoc as Table.Tabular; var table = tabular.table;