diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-12 08:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 12:53:38 +0200 |
commit | 6eba86ae9d6c8550e069ef933889610aee309381 (patch) | |
tree | a9b278f2d124c1db1261bc5128516fff3ea89919 /vcl | |
parent | afed3d177b8bfbc98d631867f200486bc2963e03 (diff) |
clang-tidy misc-redundant-expression
Change-Id: I708b0b486a233071f95592ccdb97f27fc35a23c4
Reviewed-on: https://gerrit.libreoffice.org/61783
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/salnativewidgets-gtk.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx index 2889535dba05..c95016c712d1 100644 --- a/vcl/unx/gtk/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx @@ -3997,7 +3997,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) g_object_get( pSettings, "gtk-cursor-blink-time", &blink_time, nullptr ); // set the blink_time if there is a setting and it is reasonable // else leave the default value - if( blink_time > 100 && blink_time != gint(STYLE_CURSOR_NOBLINKTIME) ) + if( blink_time > 100 ) aStyleSet.SetCursorBlinkTime( blink_time/2 ); } else diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index 98aa46f51efc..9f2cf0ea08ba 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -3086,7 +3086,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) g_object_get( pSettings, "gtk-cursor-blink-time", &blink_time, nullptr ); // set the blink_time if there is a setting and it is reasonable // else leave the default value - if( blink_time > 100 && blink_time != gint(STYLE_CURSOR_NOBLINKTIME) ) + if( blink_time > 100 ) aStyleSet.SetCursorBlinkTime( blink_time/2 ); } else |