diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-25 19:21:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-25 19:21:37 (GMT) |
commit | 5970cae1c37dc07acb7fd495520e83f20171a821 (patch) | |
tree | 7054df5dad72ff0d1b1a97b2ffe17aa638fa9778 /src/filedef.cpp | |
parent | b294263f69f56feee519fb95d71e504ea7682c5e (diff) | |
download | Doxygen-5970cae1c37dc07acb7fd495520e83f20171a821.zip Doxygen-5970cae1c37dc07acb7fd495520e83f20171a821.tar.gz Doxygen-5970cae1c37dc07acb7fd495520e83f20171a821.tar.bz2 |
Minor fixes
Avoid code duplication by adding function addHtmlExtensionIfMissing() and
avoid member shadowing by using 'm_' prefix for member variables
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r-- | src/filedef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp index 6556372..fb0e290 100644 --- a/src/filedef.cpp +++ b/src/filedef.cpp @@ -349,7 +349,7 @@ void FileDefImpl::writeTagFile(FTextStream &tagFile) tagFile << " <compound kind=\"file\">" << endl; tagFile << " <name>" << convertToXML(name()) << "</name>" << endl; tagFile << " <path>" << convertToXML(getPath()) << "</path>" << endl; - tagFile << " <filename>" << convertToXML(getOutputFileBase()) << (hasExtension(getOutputFileBase()) ? "" : Doxygen::htmlFileExtension) << "</filename>" << endl; + tagFile << " <filename>" << convertToXML(addHtmlExtensionIfMissing(getOutputFileBase())) << "</filename>" << endl; if (m_includeList && m_includeList->count()>0) { QListIterator<IncludeInfo> ili(*m_includeList); |