aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.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 /InterfaceHandler.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 'InterfaceHandler.h')
-rw-r--r--InterfaceHandler.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/InterfaceHandler.h b/InterfaceHandler.h
index 7a5ee66d..524e2903 100644
--- a/InterfaceHandler.h
+++ b/InterfaceHandler.h
@@ -37,15 +37,15 @@ namespace solidity
// Forward declarations
class ContractDefinition;
-enum DocumentationType: unsigned short;
+enum class DocumentationType: uint8_t;
-enum DocTagType
+enum class DocTagType: uint8_t
{
- DOCTAG_NONE = 0,
- DOCTAG_DEV,
- DOCTAG_NOTICE,
- DOCTAG_PARAM,
- DOCTAG_RETURN
+ NONE = 0,
+ DEV,
+ NOTICE,
+ PARAM,
+ RETURN
};
class InterfaceHandler
@@ -60,7 +60,7 @@ public:
/// @return A unique pointer contained string with the json
/// representation of provided type
std::unique_ptr<std::string> getDocumentation(std::shared_ptr<ContractDefinition> _contractDef,
- enum DocumentationType _type);
+ DocumentationType _type);
/// Get the ABI Interface of the contract
/// @param _contractDef The contract definition
/// @return A unique pointer contained string with the json
@@ -84,7 +84,7 @@ private:
std::string::const_iterator parseDocTagLine(std::string::const_iterator _pos,
std::string::const_iterator _end,
std::string& _tagString,
- enum DocTagType _tagType);
+ DocTagType _tagType);
std::string::const_iterator parseDocTagParam(std::string::const_iterator _pos,
std::string::const_iterator _end);
std::string::const_iterator appendDocTagParam(std::string::const_iterator _pos,
@@ -99,7 +99,7 @@ private:
Json::StyledWriter m_writer;
// internal state
- enum DocTagType m_lastTag;
+ DocTagType m_lastTag;
std::string m_notice;
std::string m_dev;
std::string m_return;