diff options
author | Andrzej Hunt <andrzej@ahunt.org> | 2017-02-28 11:55:29 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-28 11:57:22 +0100 |
commit | f0272f90fdb23ea82db235f8e150bc878153fe25 (patch) | |
tree | a420058cc68a2558651c783257fd9aaaaebbbfc0 | |
parent | 38f05ed5552329fe79743ed4caace8313442d3ed (diff) | |
download | kube-f0272f90fdb23ea82db235f8e150bc878153fe25.tar.gz kube-f0272f90fdb23ea82db235f8e150bc878153fe25.zip |
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
-rw-r--r-- | framework/actions/context.h | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
54 | 54 | ||
55 | class ContextWrapper { | 55 | class ContextWrapper { |
56 | public: | 56 | public: |
57 | ContextWrapper(Context &c) : context{c} {} | 57 | ContextWrapper(Context &c) : context(c) {} |
58 | Context &context; | 58 | Context &context; |
59 | }; | 59 | }; |
60 | 60 | ||