aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-05 22:50:39 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-05 22:50:39 +0800
commit407f11ba7689cdd6ea856dc857a07f761255e80d (patch)
tree55dd6f5c5879bd5c81035517b328ba180e617b02 /CompilerStack.h
parentc8f96589c58c1a0ab290a192e4aa1dfb263d01df (diff)
downloaddexon-solidity-407f11ba7689cdd6ea856dc857a07f761255e80d.tar.gz
dexon-solidity-407f11ba7689cdd6ea856dc857a07f761255e80d.tar.zst
dexon-solidity-407f11ba7689cdd6ea856dc857a07f761255e80d.zip
Replacing old cstyle enums with c++11 enums in natspec
Diffstat (limited to 'CompilerStack.h')
-rw-r--r--CompilerStack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerStack.h b/CompilerStack.h
index 8dc546fb..928815cc 100644
--- a/CompilerStack.h
+++ b/CompilerStack.h
@@ -37,7 +37,7 @@ class Compiler;
class GlobalContext;
class InterfaceHandler;
-enum DocumentationType: unsigned short
+enum class DocumentationType: uint8_t
{
NATSPEC_USER = 1,
NATSPEC_DEV,
@@ -74,7 +74,7 @@ public:
/// Prerequisite: Successful call to parse or compile.
/// @param type The type of the documentation to get.
/// Can be one of 3 types defined at @c documentation_type
- std::string const& getJsonDocumentation(enum DocumentationType type);
+ std::string const& getJsonDocumentation(DocumentationType type);
/// Returns the previously used scanner, useful for counting lines during error reporting.
Scanner const& getScanner() const { return *m_scanner; }