aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-01-24 08:50:59 +1100
committerNeil <nyamatongwe@gmail.com>2017-01-24 08:50:59 +1100
commitc30f2cf38d6152de4d3537f3539cbdfd99965cc6 (patch)
tree152ef0585ad58ce204a38f28c4c450f2a52fa408 /cocoa/PlatCocoa.mm
parenta0c8f7e4f982de803838d2a284c94d5f20b95b5d (diff)
downloadscintilla-mirror-c30f2cf38d6152de4d3537f3539cbdfd99965cc6.tar.gz
Use safer static_cast instead of reinterpret_cast. Remove cast to void*.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 39b76f839..678608e11 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -708,7 +708,7 @@ void Scintilla::SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, Colou
}
static void ProviderReleaseData(void *, const void *data, size_t) {
- const unsigned char *pixels = reinterpret_cast<const unsigned char *>(data);
+ const unsigned char *pixels = static_cast<const unsigned char *>(data);
delete []pixels;
}