Index: core/fxge/fx_dib.h |
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h |
index 1719ae13e580aeacb3153bffdb37c336ad098693..b633defbc6a2daecbdca89e000dfa34bea739e4e 100644 |
--- a/core/fxge/fx_dib.h |
+++ b/core/fxge/fx_dib.h |
@@ -215,18 +215,19 @@ class CFX_DIBSource { |
void CopyPalette(const uint32_t* pSrcPal); |
- CFX_DIBitmap* Clone(const FX_RECT* pClip = nullptr) const; |
- CFX_DIBitmap* CloneConvert(FXDIB_Format format) const; |
- |
- CFX_DIBitmap* StretchTo(int dest_width, |
- int dest_height, |
- uint32_t flags = 0, |
- const FX_RECT* pClip = nullptr) const; |
- CFX_DIBitmap* TransformTo(const CFX_Matrix* pMatrix, |
- int& left, |
- int& top, |
- uint32_t flags = 0, |
- const FX_RECT* pClip = nullptr) const; |
+ std::unique_ptr<CFX_DIBitmap> Clone(const FX_RECT* pClip = nullptr) const; |
+ std::unique_ptr<CFX_DIBitmap> CloneConvert(FXDIB_Format format) const; |
+ |
+ std::unique_ptr<CFX_DIBitmap> StretchTo(int dest_width, |
+ int dest_height, |
+ uint32_t flags = 0, |
+ const FX_RECT* pClip = nullptr) const; |
+ std::unique_ptr<CFX_DIBitmap> TransformTo( |
+ const CFX_Matrix* pMatrix, |
+ int& left, |
+ int& top, |
+ uint32_t flags = 0, |
+ const FX_RECT* pClip = nullptr) const; |
CFX_DIBitmap* GetAlphaMask(const FX_RECT* pClip = nullptr) const; |
bool CopyAlphaMask(const CFX_DIBSource* pAlphaMask, |