Export reference parameters as C++ references, not pointers.

This commit is contained in:
Matt Pharr
2012-05-24 07:12:48 -07:00
parent 2c5a57e386
commit fd03ba7586
2 changed files with 2 additions and 2 deletions

View File

@@ -2554,7 +2554,7 @@ ReferenceType::GetCDeclaration(const std::string &name) const {
}
else {
std::string ret;
ret += targetType->GetCDeclaration("") + std::string(" *");
ret += targetType->GetCDeclaration("") + std::string(" &");
if (lShouldPrintName(name))
ret += name;
return ret;