diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-31 16:53:20 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-31 16:53:20 (GMT) |
commit | 7b4c4577ef836deada725ffb76ed1248b52e9cda (patch) | |
tree | db7867595eaa3f8b39f96ad92b6a322673adbbfc /src/util.cpp | |
parent | 450afb801fe3aa0a9c820070f4b0f00f09e984ea (diff) | |
download | Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.zip Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.tar.gz Doxygen-7b4c4577ef836deada725ffb76ed1248b52e9cda.tar.bz2 |
Moved check for page having a title to hasTitle() method
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp index 08c13fb..24e8898 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6674,7 +6674,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle, if (gd) gd->addPage(pd); - if (!pd->title().isEmpty()) + if (pd->hasTitle()) { //outputList->writeTitle(pi->name,pi->title); @@ -8919,10 +8919,7 @@ void convertProtectionLevel( bool mainPageHasTitle() { - if (Doxygen::mainPage==0) return FALSE; - if (Doxygen::mainPage->title().isEmpty()) return FALSE; - if (Doxygen::mainPage->title().lower()=="notitle") return FALSE; - return TRUE; + return Doxygen::mainPage!=0 && Doxygen::mainPage->hasTitle(); } QCString getDotImageExtension(void) |