Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

nsCOMPtr

« XPCOM API Reference

Summary

This utility class simplifies managing XPCOM interface references from C++ code.

  #include "nsCOMPtr.h"

Remarks

Consult Using nsCOMPtr for more info.

To use this class, you must link your component or application against the XPCOM glue library. The class itself and the supporting functions that are used with it are not frozen, but they are available as part of the XPCOM glue library for easy reuse.

Document Tags and Contributors

 Contributors to this page: kanru, Sheppy, Nickolay, Jorend, Hwaara, Pmash
 Last updated by: kanru,