Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsAECoercionHandlers.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OSErr CreateCoercionHandlers ()
OSErr ShutdownCoercionHandlers ()

Function Documentation

Definition at line 180 of file nsAECoercionHandlers.cpp.

{
       OSErr  err = noErr;
       
       if (AECoercionHandlers::sAECoercionHandlers)
              return noErr;
       
       try
       {
              AECoercionHandlers::sAECoercionHandlers = new AECoercionHandlers;
       }
       catch(OSErr catchErr)
       {
              err = catchErr;
       }
       catch( ... )
       {
              err = paramErr;
       }
       
       return err;

}

Definition at line 211 of file nsAECoercionHandlers.cpp.

{
       if (!AECoercionHandlers::sAECoercionHandlers)
              return noErr;
       
       try
       {
              delete AECoercionHandlers::sAECoercionHandlers;
       }
       catch(...)
       {
       }
       
       AECoercionHandlers::sAECoercionHandlers = nil;
       return noErr;
}