summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-07-23 07:47:36 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-07-23 07:47:36 (GMT)
commitb6c724e8ab5caeef1e3d065e4c2fa05740d87859 (patch)
tree176599f5de01035a777e7f541c44083d94a851ab /src/types.h
parent30f7d0615e27a89e7124a46fbf6dc5b0731babd3 (diff)
downloadDoxygen-b6c724e8ab5caeef1e3d065e4c2fa05740d87859.zip
Doxygen-b6c724e8ab5caeef1e3d065e4c2fa05740d87859.tar.gz
Doxygen-b6c724e8ab5caeef1e3d065e4c2fa05740d87859.tar.bz2
Minor fixes to local toc logic after feedback
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/types.h b/src/types.h
index 36f31fe..e58c8fc 100644
--- a/src/types.h
+++ b/src/types.h
@@ -224,7 +224,7 @@ class LocalToc
public:
enum Type {
None = 0, // initial value
- Html = 0, // index / also to be used as (1 << Definition::Html)
+ Html = 0, // index / also to be used as bit position in mask (1 << Html)
Latex = 1, // ...
Xml = 2, // ...
numTocTypes = 3 // number of enum values
@@ -249,9 +249,9 @@ class LocalToc
}
// getters
- bool isHtmlEnabled() const { return (m_mask & Html)!=0; }
- bool isLatexEnabled() const { return (m_mask & Latex)!=0; }
- bool isXmlEnabled() const { return (m_mask & Xml)!=0; }
+ bool isHtmlEnabled() const { return (m_mask & (1<<Html))!=0; }
+ bool isLatexEnabled() const { return (m_mask & (1<<Latex))!=0; }
+ bool isXmlEnabled() const { return (m_mask & (1<<Xml))!=0; }
bool nothingEnabled() const { return m_mask == None; }
int htmlLevel() const { return m_level[Html]; }
int latexLevel() const { return m_level[Latex]; }