diff options
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/panels/strings.c | 16 | 
1 files changed, 3 insertions, 13 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c index 6e9324f..895a1b9 100644 --- a/src/gui/panels/strings.c +++ b/src/gui/panels/strings.c @@ -39,6 +39,7 @@  #include "../../core/params.h"  #include "../../core/queue.h"  #include "../../format/format.h" +#include "../../format/strsym.h"  #include "../../format/symiter.h"  #include "../../gtkext/easygtk.h"  #include "../../gtkext/gtkdisplaypanel.h" @@ -766,7 +767,7 @@ static void reload_strings_for_new_list_view(const GStringsPanel *panel, GtkStat           symbol != NULL;           symbol = get_symbol_iterator_next(siter))      { -        if (g_binary_symbol_get_target_type(symbol) != STP_RO_STRING) +        if (!G_IS_STR_SYMBOL(symbol))              goto rsfnlv_next;          range = g_binary_symbol_get_range(symbol); @@ -1378,21 +1379,10 @@ static bool is_string_name_matching(const strings_update_data *data, GtkTreeMode  {      bool result;                            /* Bilan à retourner           */      GBinSymbol *symbol;                     /* Symbole manipulé            */ -#ifndef NDEBUG -    SymbolType type;                        /* Type associé au symbole     */ -#endif      char *label;                            /* Etiquette à analyser        */      gtk_tree_model_get(model, iter, STC_SYMBOL, &symbol, -1); -    assert(symbol != NULL); - -#ifndef NDEBUG - -    type = g_binary_symbol_get_target_type(symbol); - -    assert(type == STP_RO_STRING); - -#endif +    assert(G_IS_STR_SYMBOL(symbol));      label = g_binary_symbol_get_label(symbol);  | 
