Index: src/ports/SkFontConfigInterface_direct.cpp |
diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp |
index 9ef088d8b7606202ea2f7a96244b0e3854708121..3400aa99a8ec4ead7d84e97a6d8afd6a0cb3a9fb 100644 |
--- a/src/ports/SkFontConfigInterface_direct.cpp |
+++ b/src/ports/SkFontConfigInterface_direct.cpp |
@@ -133,7 +133,7 @@ SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface(SkBase |
SkAutoMutexAcquire ac(mutex); |
static SkFontConfigInterfaceDirect* singleton = NULL; |
if (singleton == NULL) { |
- singleton = SkNEW(SkFontConfigInterfaceDirect); |
+ singleton = new SkFontConfigInterfaceDirect; |
} |
return singleton; |
} |
@@ -733,9 +733,7 @@ bool SkFontConfigInterfaceDirect::matchFamilySet(const char inFamilyName[], |
} |
} |
- SkFontStyleSet_FC* sset = SkNEW_ARGS(SkFontStyleSet_FC, |
- (trimmedMatches.begin(), |
- trimmedMatches.count())); |
+ SkFontStyleSet_FC* sset = new SkFontStyleSet_FC (trimmedMatches.begin(), trimmedMatches.count()); |
#endif |
return false; |
} |