From 8bb3b0d67cf36d02fc458f04af8cb244c08f8281 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 3 Dec 2013 15:04:05 -0500 Subject: [PATCH] Not adding comma, to be safe --- openbr/plugins/openbr_internal.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/openbr_internal.h b/openbr/plugins/openbr_internal.h index 1627d8e..98fab50 100644 --- a/openbr/plugins/openbr_internal.h +++ b/openbr/plugins/openbr_internal.h @@ -262,9 +262,13 @@ public: QString name = metaObject()->className(); name.replace("Transform",""); - name += "([],"; + name += "([]"; - name += this->arguments().join(","); + QStringList arguments = this->arguments(); + if (!arguments.isEmpty()) { + name += ","; + name += this->arguments().join(","); + } name += ")"; name.replace("br::",""); -- libgit2 0.21.4