diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-08-05 21:07:35 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-08-05 21:07:35 +0000 |
| commit | c0f2f5606f0884e00f426653168b84b23d26ffb3 (patch) | |
| tree | bf8d55883afbd6fedb3428788c86fa117529023a /src/widgets/paint-selector.cpp | |
| parent | fix memleak (rows) (diff) | |
| download | inkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.tar.gz inkscape-c0f2f5606f0884e00f426653168b84b23d26ffb3.zip | |
code cleanup (cppcheck)
(bzr r12469)
Diffstat (limited to 'src/widgets/paint-selector.cpp')
| -rw-r--r-- | src/widgets/paint-selector.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/paint-selector.cpp b/src/widgets/paint-selector.cpp index 40d2fb9f3..cd987cc87 100644 --- a/src/widgets/paint-selector.cpp +++ b/src/widgets/paint-selector.cpp @@ -1141,14 +1141,12 @@ static void sp_paint_selector_set_mode_swatch(SPPaintSelector *psel, SPPaintSele gtk_widget_set_sensitive(psel->style, TRUE); - SwatchSelector *swatchsel = NULL; - if (psel->mode == SPPaintSelector::MODE_SWATCH){ // swatchsel = static_cast<SwatchSelector*>(g_object_get_data(G_OBJECT(psel->selector), "swatch-selector")); } else { sp_paint_selector_clear_frame(psel); // Create new gradient selector - swatchsel = new SwatchSelector(); + SwatchSelector *swatchsel = new SwatchSelector(); swatchsel->show(); swatchsel->connectGrabbedHandler( G_CALLBACK(sp_paint_selector_gradient_grabbed), psel ); |
