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/inkscape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inkscape.cpp') diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 53536b878..a59f518a0 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -695,7 +695,7 @@ Application::crash_handler (int /*signum*/) /* originally, the document name was retrieved from * the sodipod:docname attribute */ - docname = doc->getName(); + docname = doc->getDocumentName(); if (docname) { /* Removes an emergency save suffix if present: /(.*)\.[0-9_]*\.[0-9_]*\.[~\.]*$/\1/ */ const char* d0 = strrchr ((char*)docname, '.'); @@ -722,7 +722,7 @@ Application::crash_handler (int /*signum*/) // Find a location const char* locations[] = { - doc->getBase(), + doc->getDocumentBase(), g_get_home_dir(), g_get_tmp_dir(), curdir, @@ -746,7 +746,7 @@ Application::crash_handler (int /*signum*/) savednames.push_back(g_strdup (c)); fclose (file); } else { - failednames.push_back((doc->getName()) ? g_strdup(doc->getName()) : g_strdup (_("Untitled document"))); + failednames.push_back((doc->getDocumentName()) ? g_strdup(doc->getDocumentName()) : g_strdup (_("Untitled document"))); } count++; } -- cgit v1.2.3