diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-08-05 12:34:06 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-08-05 12:34:06 -0700 |
commit | ae51c810a44844ef437393c1768be8f7766586b2 (patch) | |
tree | 373bbfa8c8720af43d58a9982beea3ebf10c5d6d /xfa/src/fxgraphics | |
parent | e3166a8c39c8943f6cafb2ffe10bd9564e3eaf16 (diff) | |
download | pdfium-ae51c810a44844ef437393c1768be8f7766586b2.tar.xz |
Kill off last uses of FX_NEW in XFA.
It would seem that this never merged completely.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1277583002 .
Diffstat (limited to 'xfa/src/fxgraphics')
-rw-r--r-- | xfa/src/fxgraphics/src/fx_graphics.cpp | 8 | ||||
-rw-r--r-- | xfa/src/fxgraphics/src/fx_path_generator.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xfa/src/fxgraphics/src/fx_graphics.cpp b/xfa/src/fxgraphics/src/fx_graphics.cpp index 8963b11d72..c5eac42e87 100644 --- a/xfa/src/fxgraphics/src/fx_graphics.cpp +++ b/xfa/src/fxgraphics/src/fx_graphics.cpp @@ -59,7 +59,7 @@ FX_ERR CFX_Graphics::Create(int32_t width, _type = FX_CONTEXT_Device;
_info._isAntialiasing = isAntialiasing;
{
- _aggGraphics = FX_NEW CAGG_Graphics;
+ _aggGraphics = new CAGG_Graphics;
return _aggGraphics->Create(this, width, height, format);
}
}
@@ -112,7 +112,7 @@ FX_ERR CFX_Graphics::SaveGraphState() { case FX_CONTEXT_Device: {
_FX_RETURN_VALUE_IF_FAIL(_renderDevice, FX_ERR_Property_Invalid);
_renderDevice->SaveState();
- TInfo* info = FX_NEW TInfo;
+ TInfo* info = new TInfo;
info->_graphState.Copy(_info._graphState);
info->_isAntialiasing = _info._isAntialiasing;
info->_strokeAlignment = _info._strokeAlignment;
@@ -1152,7 +1152,7 @@ FX_ERR CAGG_Graphics::Create(CFX_Graphics* owner, if (_owner) {
return FX_ERR_Property_Invalid;
}
- CFX_FxgeDevice* device = FX_NEW CFX_FxgeDevice;
+ CFX_FxgeDevice* device = new CFX_FxgeDevice;
device->Create(width, height, format);
_owner = owner;
_owner->_renderDevice = device;
@@ -1172,7 +1172,7 @@ FX_ERR CFX_Path::Create() { if (_generator) {
return FX_ERR_Property_Invalid;
}
- _generator = FX_NEW CFX_PathGenerator;
+ _generator = new CFX_PathGenerator;
_generator->Create();
return FX_ERR_Succeeded;
}
diff --git a/xfa/src/fxgraphics/src/fx_path_generator.cpp b/xfa/src/fxgraphics/src/fx_path_generator.cpp index 3107febdbd..116a9df28e 100644 --- a/xfa/src/fxgraphics/src/fx_path_generator.cpp +++ b/xfa/src/fxgraphics/src/fx_path_generator.cpp @@ -10,7 +10,7 @@ CFX_PathGenerator::CFX_PathGenerator() { m_pPathData = NULL;
}
void CFX_PathGenerator::Create() {
- m_pPathData = FX_NEW CFX_PathData;
+ m_pPathData = new CFX_PathData;
}
CFX_PathGenerator::~CFX_PathGenerator() {
if (m_pPathData) {
|