VirtualBox

Changeset 29929 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 31, 2010 10:18:52 PM (15 years ago)
Author:
vboxsync
Message:

com/ptr.h,/Makefile.kmk: Hack to make it possible to dereference the "smart" pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/ptr.h

    r28800 r29929  
    226226     *  pointer).
    227227     */
     228#ifndef IN_SLICKEDIT
    228229    NoAddRefRelease<C>* operator->() const
    229230    {
     
    231232        return (NoAddRefRelease<C>*)p;
    232233    }
     234#else  /* IN_SLICKEDIT - The editor doesn't quite grok the above magic, sorry about the mess. */
     235    C *operator->() const { return this->p; }
     236#endif
    233237
    234238    template <class I>
     
    491495        return *this;
    492496    }
     497
     498#ifdef IN_SLICKEDIT /* Doesn't fully grok the stuff otherwise, sorry for the bloat. */
     499    C *operator->() const { return this->p; }
     500#endif
    493501
    494502    /**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette