Removed an unsed variable and used an unused macro
[pspp-builds.git] / src / ui / gui / psppire-data-store.c
index 0152d3f6f59dd9937df88efef0be2aa3fc0dced0..4d5ffcf1da36e7665bdf81eee666eb881ec0f96e 100644 (file)
@@ -158,7 +158,6 @@ psppire_data_store_init (PsppireDataStore *data_store)
 {
   data_store->dict = 0;
   data_store->case_file = NULL;
-  data_store->width_of_m = 10;
   data_store->dispose_has_run = FALSE;
 }
 
@@ -737,13 +736,11 @@ static const gchar null_var_name[]=N_("var");
 static gchar *
 get_row_button_label (const GSheetModel *model, gint unit)
 {
-  gchar *text;
-  gchar *s;
   PsppireDataStore *ds = PSPPIRE_DATA_STORE (model);
 
-  s = g_strdup_printf (_("%d"), unit + 1);
+  gchar *s = g_strdup_printf (_("%d"), unit + FIRST_CASE_NUMBER);
 
-  text =  pspp_locale_to_utf8 (s, -1, 0);
+  gchar *text =  pspp_locale_to_utf8 (s, -1, 0);
 
   g_free (s);