summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-06-06 10:00:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-06-06 13:05:34 +0200
commitd2d6b2d785ccdfb67473c5b97bcac9bd25d3407b (patch)
treeb1cf4bc5e7afb86d7912ce0e84eb0c8c70c373ed /fpicker
parentfc2e8cc2e5cba51d38bd3a3f980610d29fe50319 (diff)
loplugin:cstylecast (macOS)
Change-Id: I4468aff1817fdb47256dff94e7f2d8aa7575137e Reviewed-on: https://gerrit.libreoffice.org/73586 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm
index 71a2940dec9e..e0137e0d665d 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.mm
+++ b/fpicker/source/aqua/SalAquaFilePicker.mm
@@ -162,7 +162,8 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute()
// So instead of:
// [m_pDialog setDelegate:m_pDelegate];
// do:
- ((id (*)(id, SEL, ...))objc_msgSend)(m_pDialog, @selector(setDelegate:), m_pDelegate);
+ reinterpret_cast<id (*)(id, SEL, ...)>(objc_msgSend)(
+ m_pDialog, @selector(setDelegate:), m_pDelegate);
int nStatus = runandwaitforresult();