mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Disable copy constructors and copy assignment operators
This commit is contained in:
@ -36,6 +36,9 @@ public:
|
||||
WICBitmapDIB();
|
||||
~WICBitmapDIB();
|
||||
|
||||
WICBitmapDIB(const WICBitmapDIB& other) = delete;
|
||||
WICBitmapDIB& operator=(WICBitmapDIB other) = delete;
|
||||
|
||||
void Resize(UINT w, UINT h);
|
||||
|
||||
HBITMAP GetHandle() const { return m_DIBSectionBuffer; }
|
||||
|
@ -48,6 +48,9 @@ public:
|
||||
IFACEMETHOD(GetPixelFormat)(WICPixelFormatGUID* pPixelFormat);
|
||||
|
||||
private:
|
||||
WICBitmapLockDIB(const WICBitmapLockDIB& other) = delete;
|
||||
WICBitmapLockDIB& operator=(WICBitmapLockDIB other) = delete;
|
||||
|
||||
WICBitmapDIB* m_Bitmap;
|
||||
const WICRect* m_Rect;
|
||||
UINT m_RefCount;
|
||||
|
@ -48,6 +48,9 @@ public:
|
||||
IFACEMETHOD(GetPixelFormat)(WICPixelFormatGUID* pPixelFormat);
|
||||
|
||||
private:
|
||||
WICBitmapLockGDIP(const WICBitmapLockGDIP& other) = delete;
|
||||
WICBitmapLockGDIP& operator=(WICBitmapLockGDIP other) = delete;
|
||||
|
||||
Gdiplus::BitmapData m_BitmapData;
|
||||
UINT m_RefCount;
|
||||
};
|
||||
|
Reference in New Issue
Block a user