diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-03 21:33:12 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-03 21:34:08 +0200 |
commit | 116d551f823fdd8e6d3e334987ba9701a900e47a (patch) | |
tree | 4d4ae9911b2322d936e6d50c8e3ebba31f91bb0a /DevTools | |
parent | 3100e8dee520b7c988d36b38b76b95a0ee9b8e7c (diff) | |
download | serenity-116d551f823fdd8e6d3e334987ba9701a900e47a.zip |
IPCCompiler: Don't generate "OwnPtr<void>" as a handle() return type
This was happening for async (response-less) messages, since they were
returning void and were were always just wrapping the return type in
an OwnPtr no matter what.
Diffstat (limited to 'DevTools')
-rw-r--r-- | DevTools/IPCCompiler/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp index 3093b9af7d..e1b78d93e5 100644 --- a/DevTools/IPCCompiler/main.cpp +++ b/DevTools/IPCCompiler/main.cpp @@ -366,13 +366,15 @@ int main(int argc, char** argv) String return_type = "void"; if (message.is_synchronous) { StringBuilder builder; + builder.append("OwnPtr<"); builder.append(endpoint.name); builder.append("::"); builder.append(message.name); builder.append("Response"); + builder.append(">"); return_type = builder.to_string(); } - dbg() << " virtual OwnPtr<" << return_type << "> handle(const " << endpoint.name << "::" << message.name << "&) = 0;"; + dbg() << " virtual " << return_type << " handle(const " << endpoint.name << "::" << message.name << "&) = 0;"; } dbg() << "private:"; |