Commit 7359e31c authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Sébastien Wilmet
Browse files

Factory: fix return_if_fail -> return_val_if_fail

Since the function returns a non-void value.

Catched with clang.
parent 2043f857
......@@ -25,7 +25,7 @@ public class Factory : Tepl.AbstractFactoryVala
public override Gtk.ApplicationWindow? create_main_window_vala (Gtk.Application gtk_app)
return_if_fail (gtk_app is LatexilaApp);
return_val_if_fail (gtk_app is LatexilaApp, null);
LatexilaApp app = gtk_app as LatexilaApp;
MainWindow? active_main_window = app.get_active_main_window ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment