summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/ocaldialogs.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2012-02-14 06:59:49 +0000
committerJon A. Cruz <jon@joncruz.org>2012-02-14 06:59:49 +0000
commitdef327c81136916c1ed55121edbcb80d91df54a7 (patch)
tree18b1c1ff814cb8f9fcfdbe590c89ed46d73732f8 /src/ui/dialog/ocaldialogs.cpp
parentAdding stdint for definitions of uint32_t, etc. (diff)
downloadinkscape-def327c81136916c1ed55121edbcb80d91df54a7.tar.gz
inkscape-def327c81136916c1ed55121edbcb80d91df54a7.zip
Cleaning up unused variables and other warnings.
(bzr r10972)
Diffstat (limited to 'src/ui/dialog/ocaldialogs.cpp')
-rw-r--r--src/ui/dialog/ocaldialogs.cpp12
1 files changed, 8 insertions, 4 deletions
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<const char*>(title));
#else
- row_num = filesList->append_text((const char*)title);
+ filesList->append_text(reinterpret_cast<const char*>(title));
#endif
xmlFree(title);
}