VirtualBox

Changeset 11009 in vbox for trunk/include


Ignore:
Timestamp:
Jul 30, 2008 6:52:37 PM (17 years ago)
Author:
vboxsync
Message:

iprt: Fixed missing/incorrect inline usage in the new template functions.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/autores.h

    r11008 r11009  
    5151 */
    5252template <class T>
    53 inline T RTAutoResNil(void)
     53DECLINLINE(T) RTAutoResNil(void)
    5454{
    5555    AssertFatalMsgFailed(("Unspecialized template!\n"));
     
    6464 */
    6565template <class T>
    66 inline void RTAutoResDestruct(T aHandle)
     66DECLINLINE(void) RTAutoResDestruct(T aHandle)
    6767{
    6868    AssertFatalMsgFailed(("Unspecialized template!\n"));
  • trunk/include/iprt/mem.h

    r11008 r11009  
    382382 */
    383383template <class T>
    384 void RTMemAutoFree(T *aMem)
     384DECLINLINE(void) RTMemAutoFree(T *aMem)
    385385{
    386386    RTMemFree(aMem);
     
    396396 */
    397397template <class T>
    398 T *RTMemAutoNil(void)
     398DECLINLINE(T *) RTMemAutoNil(void)
    399399{
    400400    return (T *)(NULL);
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