diff options
author | donaloconnor <donaloconnor@gmail.com> | 2018-05-06 22:50:39 +0100 |
---|---|---|
committer | donaloconnor <donaloconnor@gmail.com> | 2018-05-06 22:50:39 +0100 |
commit | 43f3dec009c43c0df2ef4ff62a9327de0148d959 (patch) | |
tree | 115a9190b2cca30e757c75360bbfd1188dbad1cd /src/rest.cpp | |
parent | 66cc47be982aa431b72494f5d655c20eea17a0f5 (diff) |
Remove enum specifier (to avoid re-declare scoped enum as unscoped)
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 095655b3a0..ffa75c241f 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -33,7 +33,7 @@ enum class RetFormat { }; static const struct { - enum RetFormat rf; + RetFormat rf; const char* name; } rf_names[] = { {RetFormat::UNDEF, ""}, @@ -68,7 +68,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me return false; } -static enum RetFormat ParseDataFormat(std::string& param, const std::string& strReq) +static RetFormat ParseDataFormat(std::string& param, const std::string& strReq) { const std::string::size_type pos = strReq.rfind('.'); if (pos == std::string::npos) |