From a679bb93e87a142a4cfa2720881bd033d570bebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Corr=C3=AAa=20da=20Silva=20Sanches?= Date: Tue, 27 Mar 2018 17:57:32 -0300 Subject: a few more fixes to build warnings related to libnrtype --- src/object/sp-item-group.cpp | 2 +- src/object/sp-style-elem.cpp | 5 +++-- src/object/sp-text.cpp | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/object') diff --git a/src/object/sp-item-group.cpp b/src/object/sp-item-group.cpp index 990634b72..3d89a524d 100644 --- a/src/object/sp-item-group.cpp +++ b/src/object/sp-item-group.cpp @@ -938,7 +938,7 @@ sp_group_perform_patheffect(SPGroup *group, SPGroup *top_group, Inkscape::LivePa sp_group_perform_patheffect(sub_group, top_group, lpe, write); } else { SPShape* sub_shape = dynamic_cast(sub_item); - SPPath* sub_path = dynamic_cast(sub_item); + //SPPath* sub_path = dynamic_cast(sub_item); SPItem* clipmaskto = dynamic_cast(sub_item); if (clipmaskto) { top_group->applyToClipPath(clipmaskto, lpe); diff --git a/src/object/sp-style-elem.cpp b/src/object/sp-style-elem.cpp index da02d4ef1..4c954dc41 100644 --- a/src/object/sp-style-elem.cpp +++ b/src/object/sp-style-elem.cpp @@ -212,7 +212,8 @@ import_style_cb (CRDocHandler *a_handler, delete parse_new; }; -/* NOT USED, incomplete libcroco implementation */ +#if 0 +/* FIXME: NOT USED, incomplete libcroco implementation */ static void import_style_result_cb (CRDocHandler *a_this, GList *a_media_list, @@ -223,6 +224,7 @@ import_style_result_cb (CRDocHandler *a_this, /* a_uri_default_ns and a_sheet are set to NULL and are unused by libcroco */ std::cerr << "import_style_result_cb: unimplemented" << std::endl; }; +#endif static void start_selector_cb(CRDocHandler *a_handler, @@ -340,7 +342,6 @@ end_font_face_cb(CRDocHandler *a_handler) cur->value->content.str->stryng->str) { Glib::ustring value = cur->value->content.str->stryng->str; - std::size_t found = value.find_last_of("ttf"); if (value.rfind("ttf") == (value.length() - 3) || value.rfind("otf") == (value.length() - 3)) { diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp index 79b1020ef..326e540c4 100644 --- a/src/object/sp-text.cpp +++ b/src/object/sp-text.cpp @@ -450,7 +450,7 @@ unsigned SPText::_buildLayoutInput(SPObject *root, Inkscape::Text::Layout::Optio // Extract out shapes (a comma separated list of urls) Glib::ustring shapeInside_value = style->shape_inside.value; std::vector shapes_url = Glib::Regex::split_simple(" ", shapeInside_value); - for (int i=0; i shapes_url = Glib::Regex::split_simple(" ", shapeSubtract_value); - for(int i=0; i