Skip to content

Commit bc9616a

Browse files
committed
wixl: remove useless execute() argument
1 parent 585b8f2 commit bc9616a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/msiextract.vala

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void extract_cab (Libmsi.Database db, string cab,
2626
if (cab.has_prefix ("#")) {
2727
var name = cab.substring (1);
2828
var query = new Libmsi.Query (db, "SELECT `Data` FROM `_Streams` WHERE `Name` = '%s'".printf (name));
29-
query.execute (null);
29+
query.execute ();
3030
var rec = query.fetch ();
3131
var cabinet = new GCab.Cabinet ();
3232
cabinet.load (rec.get_stream (1));
@@ -39,13 +39,13 @@ public void extract (string filename) throws GLib.Error {
3939

4040
var directories = new HashTable<string, Libmsi.Record> (str_hash, str_equal);
4141
var query = new Libmsi.Query (db, "SELECT * FROM `Directory`");
42-
query.execute (null);
42+
query.execute ();
4343
while ((rec = query.fetch ()) != null)
4444
directories.insert (rec.get_string (1), rec);
4545

4646
var components_dir = new HashTable<string, string> (str_hash, str_equal);
4747
query = new Libmsi.Query (db, "SELECT * FROM `Component`");
48-
query.execute (null);
48+
query.execute ();
4949
while ((rec = query.fetch ()) != null) {
5050
var dir_id = rec.get_string (3);
5151
var dir_rec = directories.lookup (dir_id);
@@ -72,7 +72,7 @@ public void extract (string filename) throws GLib.Error {
7272

7373
var cab_to_name = new HashTable<string, string> (str_hash, str_equal);
7474
query = new Libmsi.Query (db, "SELECT * FROM `File`");
75-
query.execute (null);
75+
query.execute ();
7676
while ((rec = query.fetch ()) != null) {
7777
var dir = components_dir.lookup (rec.get_string (2));
7878
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 {
8686

8787
message ("FIXME: gcab doesn't support extraction yet!");
8888
query = new Libmsi.Query (db, "SELECT * FROM `Media`");
89-
query.execute (null);
89+
query.execute ();
9090
while ((rec = query.fetch ()) != null) {
9191
var cab = rec.get_string (4);
9292
extract_cab (db, cab, cab_to_name);

tools/wixl/msi.vala

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Wixl {
99

1010
public virtual void create (Libmsi.Database db) throws GLib.Error {
1111
var query = new Libmsi.Query (db, sql_create);
12-
query.execute (null);
12+
query.execute ();
1313

1414
if (sql_insert == null)
1515
return;

0 commit comments

Comments
 (0)