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/xml/rebase-hrefs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xml/rebase-hrefs.cpp') diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp index c93fba380..fb310a770 100644 --- a/src/xml/rebase-hrefs.cpp +++ b/src/xml/rebase-hrefs.cpp @@ -136,7 +136,7 @@ void Inkscape::XML::rebase_hrefs(SPDocument *const doc, gchar const *const new_b { using Inkscape::URI; - std::string old_base_url_str = URI::from_dirname(doc->getBase()).str(); + std::string old_base_url_str = URI::from_dirname(doc->getDocumentBase()).str(); std::string new_base_url_str; if (new_base) { @@ -206,7 +206,7 @@ void Inkscape::XML::rebase_hrefs(SPDocument *const doc, gchar const *const new_b ir->setAttribute("xlink:href", href_str); } - doc->setBase(new_base); + doc->setDocumentBase(new_base); } -- cgit v1.2.3