summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:51 +0200
commitc56a8863cde2ccd96dc6b75ad2c7d208c8190414 (patch)
tree2845284704ae482af3ba1f907bbe5239bba49c00 /vcl/unx
parent132e8ca43e4f28c2b4b9842ce2b977e0f25b0730 (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I1a9aa868d3724a7d14c181e45d956cdf2423e40c
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/window/gtksalmenu.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx
index 94668ff00a4f..4cd662208a59 100644
--- a/vcl/unx/gtk/window/gtksalmenu.cxx
+++ b/vcl/unx/gtk/window/gtksalmenu.cxx
@@ -804,7 +804,7 @@ bool GtkSalMenu::IsItemVisible( unsigned nPos )
bool bVisible = false;
if ( nPos < maItems.size() )
- bVisible = ( ( GtkSalMenuItem* ) maItems[ nPos ])->mbVisible;
+ bVisible = maItems[ nPos ]->mbVisible;
return bVisible;
}
@@ -821,7 +821,7 @@ void GtkSalMenu::ShowItem( unsigned nPos, bool bShow )
{
SolarMutexGuard aGuard;
if ( nPos < maItems.size() )
- ( ( GtkSalMenuItem* ) maItems[ nPos ] )->mbVisible = bShow;
+ maItems[ nPos ]->mbVisible = bShow;
}
void GtkSalMenu::SetItemText( unsigned, SalMenuItem*, const OUString& )