From 774bee47ed685bd666173cb4d1664933217371c9 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 20 Feb 2019 10:50:38 +0100 Subject: Give more descriptive names to document file related variables and functions. Makes searching through code for them easier. --- src/object/sp-style-elem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/object/sp-style-elem.cpp') diff --git a/src/object/sp-style-elem.cpp b/src/object/sp-style-elem.cpp index a307b110f..dae679bb4 100644 --- a/src/object/sp-style-elem.cpp +++ b/src/object/sp-style-elem.cpp @@ -192,14 +192,14 @@ import_style_cb (CRDocHandler *a_handler, std::cerr << "import_style_cb: No document style sheet!" << std::endl; return; } - if (!document->getURI()) { + if (!document->getDocumentURI()) { std::cerr << "import_style_cb: Document URI is NULL" << std::endl; return; } // Get file Glib::ustring import_file = - Inkscape::IO::Resource::get_filename (document->getURI(), a_uri->stryng->str); + Inkscape::IO::Resource::get_filename (document->getDocumentURI(), a_uri->stryng->str); // Parse file CRStyleSheet *stylesheet = cr_stylesheet_new (nullptr); @@ -332,7 +332,7 @@ end_font_face_cb(CRDocHandler *a_handler) std::cerr << "end_font_face_cb: No document!" << std::endl; return; } - if (!document->getURI()) { + if (!document->getDocumentURI()) { std::cerr << "end_font_face_cb: Document URI is NULL" << std::endl; return; } @@ -357,7 +357,7 @@ end_font_face_cb(CRDocHandler *a_handler) // Get file Glib::ustring ttf_file = - Inkscape::IO::Resource::get_filename (document->getURI(), value); + Inkscape::IO::Resource::get_filename (document->getDocumentURI(), value); if (!ttf_file.empty()) { font_factory *factory = font_factory::Default(); -- cgit v1.2.3