diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-02 19:43:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-02 19:43:15 +0200 |
commit | 4c449bc71224aa4055b9122275885951a39605db (patch) | |
tree | 5c7e59df02a1b52ef0ab796641980ae8e1b4e021 /vcl/osx/salinst.cxx | |
parent | f4796210b4955019a4f51b29549646fa067e9ae8 (diff) |
loplugin:redundantcast
Change-Id: I6095d1209f2339387e8562074daa32779089a018
Diffstat (limited to 'vcl/osx/salinst.cxx')
-rw-r--r-- | vcl/osx/salinst.cxx | 2 |
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 ); |