From def327c81136916c1ed55121edbcb80d91df54a7 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 13 Feb 2012 22:59:49 -0800 Subject: Cleaning up unused variables and other warnings. (bzr r10972) --- src/ui/dialog/ocaldialogs.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/ui') diff --git a/src/ui/dialog/ocaldialogs.cpp b/src/ui/dialog/ocaldialogs.cpp index 5acd67929..c72f55862 100644 --- a/src/ui/dialog/ocaldialogs.cpp +++ b/src/ui/dialog/ocaldialogs.cpp @@ -513,9 +513,10 @@ void FileImportFromOCALDialog::searchTagEntryChangedCallback() */ void FileImportFromOCALDialog::print_xml_element_names(xmlNode * a_node) { - xmlNode *cur_node = NULL; +#ifdef WITH_GNOME_VFS guint row_num = 0; - for (cur_node = a_node; cur_node; cur_node = cur_node->next) { +#endif + for (xmlNode *cur_node = a_node; cur_node; cur_node = cur_node->next) { // get itens information if (strcmp((const char*)cur_node->name, "rss")) //avoid the root if (cur_node->type == XML_ELEMENT_NODE && !strcmp((const char*)cur_node->parent->name, "item")) @@ -523,10 +524,13 @@ void FileImportFromOCALDialog::print_xml_element_names(xmlNode * a_node) if (!strcmp((const char*)cur_node->name, "title")) { xmlChar *title = xmlNodeGetContent(cur_node); +#ifdef WITH_GNOME_VFS + row_num = +#endif #if WITH_GTKMM_2_24 - row_num = filesList->append((const char*)title); + filesList->append(reinterpret_cast(title)); #else - row_num = filesList->append_text((const char*)title); + filesList->append_text(reinterpret_cast(title)); #endif xmlFree(title); } -- cgit v1.2.3