diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-05-07 09:06:34 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-05-07 09:06:34 +1000 |
commit | e83b93832fa5d40d2543c8a967c256d9439fe041 (patch) | |
tree | dfd8021d17bba40882cddc97ba141e743b494cba /cocoa/PlatCocoa.h | |
parent | 0f63b24bcd3e119783c163e4fc24fa94003040af (diff) | |
download | scintilla-mirror-e83b93832fa5d40d2543c8a967c256d9439fe041.tar.gz |
Use unique_ptr on Cocoa.
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r-- | cocoa/PlatCocoa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h index 5d0789407..f8f1bd698 100644 --- a/cocoa/PlatCocoa.h +++ b/cocoa/PlatCocoa.h @@ -47,12 +47,12 @@ private: CGContextRef gc; /** The text layout instance */ - QuartzTextLayout* textLayout; + std::unique_ptr<QuartzTextLayout> textLayout; int codePage; int verticalDeviceResolution; /** If the surface is a bitmap context, contains a reference to the bitmap data. */ - uint8_t* bitmapData; + std::unique_ptr<uint8_t[]> bitmapData; /** If the surface is a bitmap context, stores the dimensions of the bitmap. */ int bitmapWidth; int bitmapHeight; |