diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-07 09:36:24 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-06-10 18:36:25 (GMT) |
commit | 1fa64cc88d0400eccb85fe4a687a269870fc3017 (patch) | |
tree | 32f21f1e5e6540e7729b0b21698c3fe89a94bcbf /src/filedef.h | |
parent | 95f9c89d6aa0008321c2ee8a0f3b1a4602789395 (diff) | |
download | Doxygen-1fa64cc88d0400eccb85fe4a687a269870fc3017.zip Doxygen-1fa64cc88d0400eccb85fe4a687a269870fc3017.tar.gz Doxygen-1fa64cc88d0400eccb85fe4a687a269870fc3017.tar.bz2 |
Refactor: make QCString a wrapper around std::string
Diffstat (limited to 'src/filedef.h')
-rw-r--r-- | src/filedef.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/filedef.h b/src/filedef.h index 2ca33db..2510d85 100644 --- a/src/filedef.h +++ b/src/filedef.h @@ -1,12 +1,12 @@ /****************************************************************************** * - * + * * * Copyright (C) 1997-2015 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * @@ -53,11 +53,11 @@ struct IncludeInfo bool indirect; }; -/** A model of a file symbol. - * +/** A model of a file symbol. + * * An object of this class contains all file information that is gathered. * This includes the members and compounds defined in the file. - * + * * The member writeDocumentation() can be used to generate the page of * documentation to HTML and LaTeX. */ @@ -71,7 +71,7 @@ class FileDef : virtual public Definition virtual DefType definitionType() const = 0; /*! Returns the unique file name (this may include part of the path). */ - virtual QCString name() const = 0; + virtual const QCString &name() const = 0; virtual QCString displayName(bool=TRUE) const = 0; virtual QCString fileName() const = 0; @@ -228,11 +228,11 @@ class DirEntry { public: enum EntryKind { Dir, File }; - DirEntry(DirEntry *parent,FileDef *fd) - : m_parent(parent), m_name(fd->name()), m_kind(File), m_fd(fd), + DirEntry(DirEntry *parent,FileDef *fd) + : m_parent(parent), m_name(fd->name()), m_kind(File), m_fd(fd), m_isLast(FALSE) { } - DirEntry(DirEntry *parent,QCString name) - : m_parent(parent), m_name(name), m_kind(Dir), + DirEntry(DirEntry *parent,QCString name) + : m_parent(parent), m_name(name), m_kind(Dir), m_fd(0), m_isLast(FALSE) { } virtual ~DirEntry() { } EntryKind kind() const { return m_kind; } @@ -257,7 +257,7 @@ class DirEntry class Directory : public DirEntry { public: - Directory(Directory *parent,const QCString &name) + Directory(Directory *parent,const QCString &name) : DirEntry(parent,name) { m_children.setAutoDelete(TRUE); } virtual ~Directory() {} |