[msitools] wixl: remove useless execute() argument
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [msitools] wixl: remove useless execute() argument
- Date: Thu, 17 Jan 2013 19:31:06 +0000 (UTC)
commit bc9616a0a2abbaf379814524665a8a2c3db804e0
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Thu Jan 17 20:30:51 2013 +0100
wixl: remove useless execute() argument
tools/msiextract.vala | 10 +++++-----
tools/wixl/msi.vala | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tools/msiextract.vala b/tools/msiextract.vala
index 121c60c..1f71499 100644
--- a/tools/msiextract.vala
+++ b/tools/msiextract.vala
@@ -26,7 +26,7 @@ public void extract_cab (Libmsi.Database db, string cab,
if (cab.has_prefix ("#")) {
var name = cab.substring (1);
var query = new Libmsi.Query (db, "SELECT `Data` FROM `_Streams` WHERE `Name` = '%s'".printf (name));
- query.execute (null);
+ query.execute ();
var rec = query.fetch ();
var cabinet = new GCab.Cabinet ();
cabinet.load (rec.get_stream (1));
@@ -39,13 +39,13 @@ public void extract (string filename) throws GLib.Error {
var directories = new HashTable<string, Libmsi.Record> (str_hash, str_equal);
var query = new Libmsi.Query (db, "SELECT * FROM `Directory`");
- query.execute (null);
+ query.execute ();
while ((rec = query.fetch ()) != null)
directories.insert (rec.get_string (1), rec);
var components_dir = new HashTable<string, string> (str_hash, str_equal);
query = new Libmsi.Query (db, "SELECT * FROM `Component`");
- query.execute (null);
+ query.execute ();
while ((rec = query.fetch ()) != null) {
var dir_id = rec.get_string (3);
var dir_rec = directories.lookup (dir_id);
@@ -72,7 +72,7 @@ public void extract (string filename) throws GLib.Error {
var cab_to_name = new HashTable<string, string> (str_hash, str_equal);
query = new Libmsi.Query (db, "SELECT * FROM `File`");
- query.execute (null);
+ query.execute ();
while ((rec = query.fetch ()) != null) {
var dir = components_dir.lookup (rec.get_string (2));
var file = Path.build_filename (dir, get_long_name (rec.get_string (3)));
@@ -86,7 +86,7 @@ public void extract (string filename) throws GLib.Error {
message ("FIXME: gcab doesn't support extraction yet!");
query = new Libmsi.Query (db, "SELECT * FROM `Media`");
- query.execute (null);
+ query.execute ();
while ((rec = query.fetch ()) != null) {
var cab = rec.get_string (4);
extract_cab (db, cab, cab_to_name);
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala
index 2e3a7a4..186e298 100644
--- a/tools/wixl/msi.vala
+++ b/tools/wixl/msi.vala
@@ -9,7 +9,7 @@ namespace Wixl {
public virtual void create (Libmsi.Database db) throws GLib.Error {
var query = new Libmsi.Query (db, sql_create);
- query.execute (null);
+ query.execute ();
if (sql_insert == null)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]