diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 16:05:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 08:59:30 +0200 |
commit | 58ae5fb5ff69a5581cffa583a57ad9381140fa9a (patch) | |
tree | e4776c71b6038e983579facd2ef0c1f8f926d54b /desktop/unx | |
parent | cb37c5f0f3de7b545231a53d46a5271058af76ad (diff) |
loplugin:oncevar in cppcanvas..drawinglayer
Change-Id: I5456aad61fb0dfe6830eae62b91d1a6399d6343f
Reviewed-on: https://gerrit.libreoffice.org/39128
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/splashx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c index 74c071157f00..aa01d44b6c61 100644 --- a/desktop/unx/source/splashx.c +++ b/desktop/unx/source/splashx.c @@ -216,7 +216,6 @@ static void create_pixmap(struct splash* splash) { Pixmap pixmap; GC pixmap_gc; - unsigned long value_mask = 0; XGCValues values; if ( !splash->bitmap_rows ) @@ -225,7 +224,7 @@ static void create_pixmap(struct splash* splash) } pixmap = XCreatePixmap( splash->display, splash->win, splash->width, splash->height, splash->depth ); - pixmap_gc = XCreateGC( splash->display, pixmap, value_mask, &values ); + pixmap_gc = XCreateGC( splash->display, pixmap, 0/*value_mask*/, &values ); if ( splash->visual->class == TrueColor ) { @@ -469,7 +468,6 @@ static int splash_init_display( struct splash* splash, int argc, char** argv ) static int splash_create_window(struct splash* splash) { Window root_win; - unsigned long value_mask = 0; XGCValues values; const char* name = "LibreOffice"; const char* icon = "icon"; // FIXME @@ -495,7 +493,7 @@ static int splash_create_window(struct splash* splash) XAllocColor( splash->display, splash->color_map, &(splash->framecolor) ); // not resizable, no decorations, etc. - splash->gc = XCreateGC( splash->display, splash->win, value_mask, &values ); + splash->gc = XCreateGC( splash->display, splash->win, 0/*value_mask*/, &values ); size_hints.flags = PPosition | PSize | PMinSize | PMaxSize; size_hints.x = splash->display_x_pos; |