diff options
author | albert-github <albert.tests@gmail.com> | 2018-09-17 10:12:26 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-09-17 10:12:26 (GMT) |
commit | e2b07563dd9cc21f8472570d2cc8d6cd69d536b8 (patch) | |
tree | 5b819ff2ea423705764316aadefb750e39ed6907 /src/htmlgen.cpp | |
parent | a7169b16d748e745bb6626c601acbb94db2f3b0a (diff) | |
download | Doxygen-e2b07563dd9cc21f8472570d2cc8d6cd69d536b8.zip Doxygen-e2b07563dd9cc21f8472570d2cc8d6cd69d536b8.tar.gz Doxygen-e2b07563dd9cc21f8472570d2cc8d6cd69d536b8.tar.bz2 |
C++11 features used in Doxygen
- corrected some initializations
- corrected some missing, new, cases (reported by travis CI)
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 8819078..f0f627c 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -17,6 +17,7 @@ #include <stdlib.h> +#include <assert.h> #include <qdir.h> #include <qregexp.h> #include "message.h" @@ -2056,6 +2057,9 @@ static bool quickLinkVisible(LayoutNavEntry::Kind kind) case LayoutNavEntry::FileGlobals: return documentedFileMembers[FMHL_All]>0; //case LayoutNavEntry::Dirs: return documentedDirs>0; case LayoutNavEntry::Examples: return Doxygen::exampleSDict->count()>0; + case LayoutNavEntry::None: // should never happen, means not properly initialized + assert(kind != LayoutNavEntry::None); + return FALSE; } return FALSE; } |