diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-28 18:58:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 18:58:23 (GMT) |
commit | 200c31bf342c533de77fede161e18e395c5ce875 (patch) | |
tree | ab3e4df7e6d88c5907d89fc8ef66fcd28738ae20 /src/eclipsehelp.cpp | |
parent | b95b4766c7107e9b3ff0969534fe54c131412249 (diff) | |
parent | a9f40a48c99af952836a3871e60ff6ca17ecdecf (diff) | |
download | Doxygen-200c31bf342c533de77fede161e18e395c5ce875.zip Doxygen-200c31bf342c533de77fede161e18e395c5ce875.tar.gz Doxygen-200c31bf342c533de77fede161e18e395c5ce875.tar.bz2 |
Merge branch 'master' into feature/bug_formula_mj
Diffstat (limited to 'src/eclipsehelp.cpp')
-rw-r--r-- | src/eclipsehelp.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/eclipsehelp.cpp b/src/eclipsehelp.cpp index d9ef12f..b2f8193 100644 --- a/src/eclipsehelp.cpp +++ b/src/eclipsehelp.cpp @@ -71,7 +71,7 @@ void EclipseHelp::initialize() m_tocstream.open(name.str(), std::ofstream::out | std::ofstream::binary); if (!m_tocstream.is_open()) { - term("Could not open file %s for writing\n", name.data()); + term("Could not open file %s for writing\n", qPrint(name)); } // -- write the opening tag @@ -159,17 +159,17 @@ void EclipseHelp::decContentsDepth() */ void EclipseHelp::addContentsItem( bool /* isDir */, - const char *name, - const char * /* ref */, - const char *file, - const char *anchor, + const QCString &name, + const QCString & /* ref */, + const QCString &file, + const QCString &anchor, bool /* separateIndex */, bool /* addToNavIndex */, const Definition * /*def*/) { // -- write the topic tag closedTag(); - if (file) + if (!file.isEmpty()) { switch (file[0]) // check for special markers (user defined URLs) { @@ -189,7 +189,7 @@ void EclipseHelp::addContentsItem( m_tocstream << "<topic label=\"" << convertToXML(name) << "\""; m_tocstream << " href=\"" << convertToXML(m_pathprefix) << file << Doxygen::htmlFileExtension; - if (anchor) + if (!anchor.isEmpty()) { m_tocstream << "#" << anchor; } @@ -209,20 +209,20 @@ void EclipseHelp::addContentsItem( void EclipseHelp::addIndexItem( const Definition * /* context */, const MemberDef * /* md */, - const char * /* sectionAnchor */, - const char * /* title */) + const QCString & /* sectionAnchor */, + const QCString & /* title */) { } -void EclipseHelp::addIndexFile(const char * /* name */) +void EclipseHelp::addIndexFile(const QCString & /* name */) { } -void EclipseHelp::addImageFile(const char * /* name */) +void EclipseHelp::addImageFile(const QCString & /* name */) { } -void EclipseHelp::addStyleSheetFile(const char * /* name */) +void EclipseHelp::addStyleSheetFile(const QCString & /* name */) { } |