summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:33 +0200
commita71478d8ba7347f41c20585c56e1d5283757f82e (patch)
tree3b8f13526ce899687775147ec0a6fdf2f062d71f /vcl/unx
parent4a1eddb6d7d27030b119cef147147d77c9a3ff5f (diff)
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: I0f844c7265b52d668bc6a2368321950a1a00cce5
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/app/i18n_xkb.cxx2
-rw-r--r--vcl/unx/gtk/window/gtksalmenu.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/i18n_xkb.cxx b/vcl/unx/generic/app/i18n_xkb.cxx
index cfc3bef7f3be..f9618f4d9826 100644
--- a/vcl/unx/generic/app/i18n_xkb.cxx
+++ b/vcl/unx/generic/app/i18n_xkb.cxx
@@ -57,7 +57,7 @@ SalI18N_KeyboardExtension::SalI18N_KeyboardExtension( Display* pDisplay )
int nExtMinorVersion = XkbMinorVersion;
mbUseExtension = XkbQueryExtension( mpDisplay,
- &nMajorExtOpcode, (int*)&mnEventBase, (int*)&mnErrorBase,
+ &nMajorExtOpcode, &mnEventBase, &mnErrorBase,
&nExtMajorVersion, &nExtMinorVersion ) != 0;
}
diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx
index 73ca34b6ce69..94668ff00a4f 100644
--- a/vcl/unx/gtk/window/gtksalmenu.cxx
+++ b/vcl/unx/gtk/window/gtksalmenu.cxx
@@ -160,7 +160,7 @@ bool GtkSalMenu::PrepUpdate()
if (pFrame)
{
GtkSalFrame* pNonConstFrame = const_cast<GtkSalFrame*>(pFrame);
- GtkSalMenu* pSalMenu = ((GtkSalMenu*) this);
+ GtkSalMenu* pSalMenu = this;
if ( !pNonConstFrame->GetMenu() )
pNonConstFrame->SetMenu( pSalMenu );