Skip to content

Commit

Permalink
Remove enum specifier (to avoid re-declare scoped enum as unscoped)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaloconnor committed May 6, 2018
1 parent 66cc47b commit 43f3dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum class RetFormat {
};

static const struct {
enum RetFormat rf;
RetFormat rf;
const char* name;
} rf_names[] = {
{RetFormat::UNDEF, ""},
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 43f3dec

Please sign in to comment.