dbus-protocol.h: compile under C++11
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 16 Feb 2012 07:43:40 +0000 (08:43 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 20 Feb 2012 11:23:15 +0000 (11:23 +0000)
commit51b88b4c7919487290c0862b013cd8e7cd2de34b
tree6068f53601e122a3aa56e4041c1ff3a4684381e9
parent88f5a6ed152b5b26b71f88a3992eaf40511c85ed
dbus-protocol.h: compile under C++11

C++11 compilers have a feature called 'user-defined string literals' which
allow arbitrary string suffixes to have user-defined meaning.

This makes code that concatenates macros with string literals without
intervening whitespace illegal under C++11. Fortunately, string literal
concatenation has allowed intervening whitespace since the dawn of time,
so the solution is to simply pad with spaces.

Tested (header) with GCC 4.7 (trunk).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46147
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-protocol.h