diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-23 10:25:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-23 10:25:11 +0200 |
commit | 5ea819f80c6840c492386bfafbffb059c7e2091f (patch) | |
tree | 42ad0b1d82eff090d14278a088ea0f4840a0f938 /Source/WebKit2/Scripts/webkit2/messages.py | |
parent | 43a42f108af6bcbd91f2672731c3047c26213af1 (diff) | |
download | qtwebkit-5ea819f80c6840c492386bfafbffb059c7e2091f.tar.gz |
Imported WebKit commit 20434eb8eb95065803473139d8794e98a7672f75 (http://svn.webkit.org/repository/webkit/trunk@132191)
New snapshot that should fix build with latest qtbase and the QPlastiqueStyle removal
Diffstat (limited to 'Source/WebKit2/Scripts/webkit2/messages.py')
-rw-r--r-- | Source/WebKit2/Scripts/webkit2/messages.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/WebKit2/Scripts/webkit2/messages.py b/Source/WebKit2/Scripts/webkit2/messages.py index 4584a8531..f1cd50389 100644 --- a/Source/WebKit2/Scripts/webkit2/messages.py +++ b/Source/WebKit2/Scripts/webkit2/messages.py @@ -129,8 +129,8 @@ def message_to_struct_declaration(message): result.append('struct %s : %s' % (message.name, base_class(message))) result.append(' {\n') result.append(' static const Kind messageID = %s;\n' % message.id()) - result.append(' static const char* receiverName() { return messageReceiverName(); }\n') - result.append(' static const char* name() { return "%s"; }\n' % message.name) + result.append(' static CoreIPC::StringReference receiverName() { return messageReceiverName(); }\n') + result.append(' static CoreIPC::StringReference name() { return CoreIPC::StringReference("%s"); }\n' % message.name) result.append('\n') if message.reply_parameters != None: if message.has_attribute(DELAYED_ATTRIBUTE): @@ -229,6 +229,7 @@ def forward_declarations_and_headers(receiver): '"Arguments.h"', '"MessageEncoder.h"', '"MessageID.h"', + '"StringReference.h"', ]) for message in receiver.messages: @@ -284,9 +285,9 @@ def generate_messages_header(file): result.append('namespace Messages {\nnamespace %s {\n' % receiver.name) result.append('\n') - result.append('static inline const char* messageReceiverName()\n') + result.append('static inline CoreIPC::StringReference messageReceiverName()\n') result.append('{\n') - result.append(' return "%s";\n' % receiver.name) + result.append(' return CoreIPC::StringReference("%s");\n' % receiver.name) result.append('}\n') result.append('\n') |