summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-19 13:46:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-19 21:17:27 +0100
commit78a5ed18dc3368cfa78cfcfb54a08c600b4c0ab5 (patch)
tree3c3cd6b3c87f530c992ea94b7f09a4aaec149401 /vcl/osx
parent9ece0b1adae5e52c4301005514fb54750e860f6f (diff)
loplugin:redundantcast (after loplugin:cstylecast, macOS)
Change-Id: I4b40f768ec6b0e42e91d7a6af6d5c23a94ab9e9d Reviewed-on: https://gerrit.libreoffice.org/48192 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/clipboard.cxx2
-rw-r--r--vcl/osx/salnativewidgets.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 53326fb6634d..d0c047f54ae8 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -292,7 +292,7 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, const NSString* typ
if (dp.get() != nullptr)
{
- pBoardData = (NSData*)dp->getSystemData();
+ pBoardData = dp->getSystemData();
[sender setData: pBoardData forType:const_cast<NSString*>(type)];
}
}
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index 42add9e30d5a..d311526c0168 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -921,8 +921,8 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
ControlState nUpperState = ControlState::ENABLED;//state of the upper button
ControlState nLowerState = ControlState::ENABLED;//and of the lower button
if(pSpinButtonVal) {//pSpinButtonVal is sometimes null
- nUpperState = (ControlState) pSpinButtonVal->mnUpperState;
- nLowerState = (ControlState) pSpinButtonVal->mnLowerState;
+ nUpperState = pSpinButtonVal->mnUpperState;
+ nLowerState = pSpinButtonVal->mnLowerState;
HIThemeButtonDrawInfo aSpinInfo;
aSpinInfo.kind = kThemeIncDecButton;