From f0272f90fdb23ea82db235f8e150bc878153fe25 Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Tue, 28 Feb 2017 11:55:29 +0100 Subject: Don't use initialiser list syntax for reference Summary: Initialiser lists don't work for member references in gcc 4.8, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50025 (This issue is apparently fixed in gcc 4.9, but at least my distro still ships 4.8 by default.) This syntax was originally introduced in: ba7128b30850594c7efb258d1794e377eede364a Reviewers: #kube, cmollekopf, aacid Reviewed By: #kube, cmollekopf Subscribers: aacid Differential Revision: https://phabricator.kde.org/D4516 --- framework/actions/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/actions/context.h') diff --git a/framework/actions/context.h b/framework/actions/context.h index 4207fe12..52fbdbc1 100644 --- a/framework/actions/context.h +++ b/framework/actions/context.h @@ -54,7 +54,7 @@ public: class ContextWrapper { public: - ContextWrapper(Context &c) : context{c} {} + ContextWrapper(Context &c) : context(c) {} Context &context; }; -- cgit v1.2.3