diff options
author | tsepez <tsepez@chromium.org> | 2016-05-20 16:53:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-20 16:53:07 -0700 |
commit | f0a128283aeaeb75ee2f62d0f25ba42ac5b07073 (patch) | |
tree | 6f5e89afb22b89211b0eb9e2035190e09f5b13d9 /xfa/fwl/basewidget/fwl_barcodeimp.h | |
parent | 76852be59cbfdb22901b37bb8579d19c07af7037 (diff) | |
download | pdfium-f0a128283aeaeb75ee2f62d0f25ba42ac5b07073.tar.xz |
Remove Release() from CFX_Barcode
Review-Url: https://codereview.chromium.org/2000883002
Diffstat (limited to 'xfa/fwl/basewidget/fwl_barcodeimp.h')
-rw-r--r-- | xfa/fwl/basewidget/fwl_barcodeimp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fwl/basewidget/fwl_barcodeimp.h b/xfa/fwl/basewidget/fwl_barcodeimp.h index 705329572a..56898bc69e 100644 --- a/xfa/fwl/basewidget/fwl_barcodeimp.h +++ b/xfa/fwl/basewidget/fwl_barcodeimp.h @@ -7,6 +7,8 @@ #ifndef XFA_FWL_BASEWIDGET_FWL_BARCODEIMP_H_ #define XFA_FWL_BASEWIDGET_FWL_BARCODEIMP_H_ +#include <memory> + #include "xfa/fwl/basewidget/fwl_editimp.h" #include "xfa/fwl/basewidget/ifwl_barcode.h" #include "xfa/fwl/basewidget/ifwl_scrollbar.h" @@ -43,16 +45,15 @@ class CFWL_BarcodeImp : public CFWL_EditImp { void GenerateBarcodeImageCache(); void CreateBarcodeEngine(); - void ReleaseBarcodeEngine(); - CFX_Barcode* m_pBarcodeEngine; + std::unique_ptr<CFX_Barcode> m_pBarcodeEngine; uint32_t m_dwStatus; BC_TYPE m_type; }; class CFWL_BarcodeImpDelegate : public CFWL_EditImpDelegate { public: - CFWL_BarcodeImpDelegate(CFWL_BarcodeImp* pOwner); + explicit CFWL_BarcodeImpDelegate(CFWL_BarcodeImp* pOwner); void OnProcessEvent(CFWL_Event* pEvent) override; }; |