diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-03-19 13:29:04 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-03-19 13:29:04 +0100 |
commit | a2869ef39d1e78c70877df27dc9a6ebc66962842 (patch) | |
tree | 98715f56cd4792a9c8b68a9933765a113fd37d41 /source/view.c | |
parent | 1f8db0fc5a1da29346119937da5fe559469af2bc (diff) |
Make clang static code analyzer happy (300+ -> 5)
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c index bfdc19a4..3a188561 100644 --- a/source/view.c +++ b/source/view.c @@ -62,6 +62,9 @@ #include "xcb.h" +const char *const separator_style_none = "none"; +const char *const separator_style_dash = "dash"; + GThreadPool *tpool = NULL; RofiViewState *current_active_menu = NULL; @@ -931,8 +934,8 @@ void rofi_view_update ( RofiViewState *state ) } color_separator ( d ); - if ( strcmp ( config.separator_style, "none" ) ) { - if ( strcmp ( config.separator_style, "dash" ) == 0 ) { + if ( strcmp ( config.separator_style, separator_style_none ) ) { + if ( strcmp ( config.separator_style, separator_style_dash ) == 0 ) { const double dashes[1] = { 4 }; cairo_set_dash ( d, dashes, 1, 0.0 ); } |