diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-12-05 22:18:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-12-06 07:26:52 +0100 |
commit | da85b582656219a0bc9d20cef59ae6b7ee1c4a9b (patch) | |
tree | c8334325575ce6fc7a984515fda0193a035e41ec /vcl/unx/generic | |
parent | 90d2155912bcee40377620d4836726041a72d537 (diff) |
loplugin:redundantcast
Change-Id: I7e73878f263be57d91a1db2fc3d65d411bd49228
Reviewed-on: https://gerrit.libreoffice.org/45912
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/app/i18n_ic.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/app/i18n_im.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx index f2245e5a7d4f..8cf738c4ab62 100644 --- a/vcl/unx/generic/app/i18n_ic.cxx +++ b/vcl/unx/generic/app/i18n_ic.cxx @@ -349,7 +349,7 @@ SalI18N_InputContext::SalI18N_InputContext ( SalFrame *pFrame ) : if ( maContext != nullptr) { - maDestroyCallback.callback = static_cast<XIMProc>(IC_IMDestroyCallback); + maDestroyCallback.callback = IC_IMDestroyCallback; maDestroyCallback.client_data = reinterpret_cast<XPointer>(this); XSetICValues( maContext, XNDestroyCallback, &maDestroyCallback, diff --git a/vcl/unx/generic/app/i18n_im.cxx b/vcl/unx/generic/app/i18n_im.cxx index 7b7d27ca8940..8e9e8a9be634 100644 --- a/vcl/unx/generic/app/i18n_im.cxx +++ b/vcl/unx/generic/app/i18n_im.cxx @@ -359,7 +359,7 @@ SalI18N_InputMethod::CreateMethod ( Display *pDisplay ) fprintf(stderr, "input method creation failed\n"); #endif - maDestroyCallback.callback = static_cast<XIMProc>(IM_IMDestroyCallback); + maDestroyCallback.callback = IM_IMDestroyCallback; maDestroyCallback.client_data = reinterpret_cast<XPointer>(this); if (mbUseable && maMethod != nullptr) XSetIMValues(maMethod, XNDestroyCallback, &maDestroyCallback, nullptr); |