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/index.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/index.cpp')
-rw-r--r-- | src/index.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.cpp b/src/index.cpp index 503387c..8be6b24 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -21,6 +21,7 @@ #include <stdlib.h> +#include <assert.h> #include <qtextstream.h> #include <qdatetime.h> #include <qdir.h> @@ -4308,6 +4309,9 @@ static void writeIndexHierarchyEntries(OutputList &ol,const QList<LayoutNavEntry } writeUserGroupStubPage(ol,lne); break; + case LayoutNavEntry::None: + assert(kind != LayoutNavEntry::None); // should never happen, means not properly initialized + break; } if (kind!=LayoutNavEntry::User && kind!=LayoutNavEntry::UserGroup) // User entry may appear multiple times { @@ -4357,6 +4361,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; } |