summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-03 21:33:12 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-03 21:34:08 +0200
commit116d551f823fdd8e6d3e334987ba9701a900e47a (patch)
tree4d4ae9911b2322d936e6d50c8e3ebba31f91bb0a /DevTools
parent3100e8dee520b7c988d36b38b76b95a0ee9b8e7c (diff)
downloadserenity-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.cpp4
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:";