summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Image.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Image.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_Image.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Image.h b/core/fxcodec/jbig2/JBig2_Image.h
index 54529ef868..807468aa0b 100644
--- a/core/fxcodec/jbig2/JBig2_Image.h
+++ b/core/fxcodec/jbig2/JBig2_Image.h
@@ -7,6 +7,8 @@
#ifndef CORE_FXCODEC_JBIG2_JBIG2_IMAGE_H_
#define CORE_FXCODEC_JBIG2_JBIG2_IMAGE_H_
+#include <memory>
+
#include "core/fxcodec/jbig2/JBig2_Define.h"
struct FX_RECT;
@@ -60,7 +62,10 @@ class CJBig2_Image {
JBig2ComposeOp op,
const FX_RECT* pSrcRect);
- CJBig2_Image* subImage(int32_t x, int32_t y, int32_t w, int32_t h);
+ std::unique_ptr<CJBig2_Image> subImage(int32_t x,
+ int32_t y,
+ int32_t w,
+ int32_t h);
void expand(int32_t h, bool v);
uint8_t* m_pData;