Skip to content

Commit 145aa7b

Browse files
committed
more clang
1 parent 86a7f3d commit 145aa7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/matrixview.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ matrixview_grid_refresh(Matrixview *matrixview)
205205
{
206206
Matrix *matrix = MATRIX(VOBJECT(matrixview)->iobject);
207207

208+
Tslider *tslider;
209+
const char *label;
210+
208211
int i;
209212
i = 0;
210213
for (GSList *p = matrixview->items; p; p = p->next, i++) {
@@ -217,14 +220,13 @@ matrixview_grid_refresh(Matrixview *matrixview)
217220
break;
218221

219222
case MATRIX_DISPLAY_SLIDER:
220-
Tslider *tslider = TSLIDER(item);
223+
tslider = TSLIDER(item);
221224
tslider->value = matrix->value.coeff[i];
222225
tslider->svalue = matrix->value.coeff[i];
223226
tslider_changed(TSLIDER(item));
224227
break;
225228

226229
case MATRIX_DISPLAY_TOGGLE:
227-
const char *label;
228230
switch ((int) matrix->value.coeff[i]) {
229231
case 0:
230232
label = "0";

0 commit comments

Comments
 (0)