mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:27:43 +00:00
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.
This commit is contained in:
parent
3100e8dee5
commit
116d551f82
1 changed files with 3 additions and 1 deletions
|
@ -366,13 +366,15 @@ int main(int argc, char** argv)
|
||||||
String return_type = "void";
|
String return_type = "void";
|
||||||
if (message.is_synchronous) {
|
if (message.is_synchronous) {
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
|
builder.append("OwnPtr<");
|
||||||
builder.append(endpoint.name);
|
builder.append(endpoint.name);
|
||||||
builder.append("::");
|
builder.append("::");
|
||||||
builder.append(message.name);
|
builder.append(message.name);
|
||||||
builder.append("Response");
|
builder.append("Response");
|
||||||
|
builder.append(">");
|
||||||
return_type = builder.to_string();
|
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:";
|
dbg() << "private:";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue