diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-11 17:35:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-11 17:35:43 +0100 |
commit | 6dc2d2573dbfcbe67e65476e8b25470f0a2312d0 (patch) | |
tree | e42348c6a4244a805a5423abdf4c0fffebc1bf33 /vcl | |
parent | 8b614e7b98ea434c496721052007349656bd33dd (diff) |
loplugin:redundantcast: vcl
(after a to-be-committed improved loplugin:cstylecast would have rewritten the
C-style casts into static_casts)
Change-Id: I5e515738a29c6d79154560d69c8b86885800ba88
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field2.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/animate.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 1c0268b09869..ce8aa460484d 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -1451,7 +1451,7 @@ void DateFormatter::SetExtDateFormat( ExtDateFieldFormat eFormat ) ExtDateFieldFormat DateFormatter::GetExtDateFormat( bool bResolveSystemFormat ) const { - ExtDateFieldFormat eDateFormat = (ExtDateFieldFormat)mnExtDateFormat; + ExtDateFieldFormat eDateFormat = mnExtDateFormat; if ( bResolveSystemFormat && ( eDateFormat <= ExtDateFieldFormat::SystemShortYYYY ) ) { diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx index 3e2dae464d7e..9281fc101ddb 100644 --- a/vcl/source/gdi/animate.cxx +++ b/vcl/source/gdi/animate.cxx @@ -48,7 +48,7 @@ BitmapChecksum AnimationBitmap::GetChecksum() const UInt32ToSVBT32( aSizePix.Height(), aBT32 ); nCrc = vcl_get_checksum( nCrc, aBT32, 4 ); - UInt32ToSVBT32( (long) nWait, aBT32 ); + UInt32ToSVBT32( nWait, aBT32 ); nCrc = vcl_get_checksum( nCrc, aBT32, 4 ); UInt32ToSVBT32( (long) eDisposal, aBT32 ); diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 640bfe5eab6b..61aff29038ef 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -2983,7 +2983,7 @@ bool GtkSalGraphics::NWPaintGTKToolbar( { gtk_paint_flat_box( gWidgetData[m_nXScreen].gToolbarWidget->style, gdkDrawable, - (GtkStateType)GTK_STATE_NORMAL, + GTK_STATE_NORMAL, GTK_SHADOW_NONE, &clipRect, gWidgetData[m_nXScreen].gToolbarWidget, |