On 4/5/13 9:52 PM, jeremy.ral...@gmx.ch wrote:
   AString getMyString();
....
When I try to compile this I get an error c2660 function does not take 0 
arguments. This seems weird to me as my declaration doesn't expect an argument?

The XPIDL C++ binding for AString return values turns them into a "nsAString&" our param appended to the list of arguments.

Actually, that happens for _all_ return types in XPIDL, since the C++ versions of the methods all return nsresult.

See https://developer.mozilla.org/en-US/docs/XPIDL for more information.

-Boris

_______________________________________________
dev-security mailing list
dev-security@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-security

Reply via email to