summaryrefslogtreecommitdiffstats
path: root/src/object/sp-style-elem.cpp
diff options
context:
space:
mode:
authorFelipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>2018-03-27 20:57:32 +0000
committerFelipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>2018-03-27 20:58:51 +0000
commita679bb93e87a142a4cfa2720881bd033d570bebb (patch)
tree291650706054e23166970c7e7d03c61523822543 /src/object/sp-style-elem.cpp
parentConvert Pango font variations string to CSS format before saving to CSS. (diff)
downloadinkscape-a679bb93e87a142a4cfa2720881bd033d570bebb.tar.gz
inkscape-a679bb93e87a142a4cfa2720881bd033d570bebb.zip
a few more fixes to build warnings related to libnrtype
Diffstat (limited to 'src/object/sp-style-elem.cpp')
-rw-r--r--src/object/sp-style-elem.cpp5
1 files changed, 3 insertions, 2 deletions
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)) {