From d5d4952f677b68b66cfd795e2395220dc3745bfe Mon Sep 17 00:00:00 2001 From: Jordan Cheney Date: Tue, 14 Apr 2015 15:53:36 -0400 Subject: [PATCH] Using a QScopedPointer --- openbr/openbr_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index 7aadf8d..0abe6bc 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -946,7 +946,7 @@ struct Factory static QString parameters(const QString &name) { if (!registry) return QString(); - T *object = make("." + name); + QScopedPointer object(make("." + name)); return object->parameters().join(", "); } -- libgit2 0.21.4