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/document.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/document.h') diff --git a/src/document.h b/src/document.h index e24d2ae12..2c8a8f5ce 100644 --- a/src/document.h +++ b/src/document.h @@ -128,9 +128,9 @@ public: CRStyleSheet *style_sheet; protected: - char *uri; ///< A filename (not a URI yet), or NULL - char *base; ///< To be used for resolving relative hrefs. - char *name; ///< basename(uri) or other human-readable label for the document. + char *document_uri; ///< A filename (not a URI yet), or NULL + char *document_base; ///< To be used for resolving relative hrefs. + char *document_name; ///< basename(uri) or other human-readable label for the document. public: @@ -163,15 +163,15 @@ public: Inkscape::XML::Document const *getReprDoc() const { return rdoc; } /** A filename (not a URI yet), or NULL */ - char const *getURI() const { return uri; } - void setUri(char const *uri); + char const *getDocumentURI() const { return document_uri; } + void setDocumentUri(char const *document_uri); /** To be used for resolving relative hrefs. */ - char const *getBase() const { return base; }; - void setBase( char const* base ); + char const *getDocumentBase() const { return document_base; }; + void setDocumentBase( char const* document_base ); /** basename(uri) or other human-readable label for the document. */ - char const* getName() const { return name; } + char const* getDocumentName() const { return document_name; } /** Return the main defs object for the document. */ SPDefs *getDefs(); -- cgit v1.2.3