summaryrefslogtreecommitdiff
path: root/vcl/osx/salinst.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-02 19:43:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-02 19:43:15 +0200
commit4c449bc71224aa4055b9122275885951a39605db (patch)
tree5c7e59df02a1b52ef0ab796641980ae8e1b4e021 /vcl/osx/salinst.cxx
parentf4796210b4955019a4f51b29549646fa067e9ae8 (diff)
loplugin:redundantcast
Change-Id: I6095d1209f2339387e8562074daa32779089a018
Diffstat (limited to 'vcl/osx/salinst.cxx')
-rw-r--r--vcl/osx/salinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index fc8e9e474f66..2f061cbbcc13 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -1057,7 +1057,7 @@ NSImage* CreateNSImage( const Image& rImage )
{
[pImage lockFocusFlipped:YES];
NSGraphicsContext* pContext = [NSGraphicsContext currentContext];
- CGContextRef rCGContext = reinterpret_cast<CGContextRef>([pContext graphicsPort]);
+ CGContextRef rCGContext = static_cast<CGContextRef>([pContext graphicsPort]);
const CGRect aDstRect = { {0, 0}, { static_cast<CGFloat>(aSize.Width()), static_cast<CGFloat>(aSize.Height()) } };
CGContextDrawImage( rCGContext, aDstRect, xImage );