mailiverse/cpp/iOS/Mailiverse/Utilities/MMUtilities.mm
2013-07-25 22:51:23 -04:00

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