mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-14 05:05:02 -05:00
26 lines
415 B
Plaintext
26 lines
415 B
Plaintext
/**
|
|
* Author: Timothy Prepscius
|
|
* License: BSD + keep my name in the code!
|
|
*/
|
|
|
|
|
|
#import "MMUtilities.h"
|
|
#include "mailiverse/utilities/Log.h"
|
|
|
|
@implementation MMPtr
|
|
|
|
+ (id)instantiate:(mailiverse::utilities::SmartPtrBase *)ptr
|
|
{
|
|
LogDebug (ui::MMPtr, "alloc " << ptr);
|
|
MMPtr *p = [[MMPtr alloc] init];
|
|
p->ptr = ptr;
|
|
return p;
|
|
}
|
|
|
|
- (void)dealloc
|
|
{
|
|
LogDebug (ui::MMPtr, "dealloc " << ptr);
|
|
delete ptr;
|
|
}
|
|
|
|
@end |