Skip to content

Commit 43f3dec

Browse files
committed
Remove enum specifier (to avoid re-declare scoped enum as unscoped)
1 parent 66cc47b commit 43f3dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum class RetFormat {
3333
};
3434

3535
static const struct {
36-
enum RetFormat rf;
36+
RetFormat rf;
3737
const char* name;
3838
} rf_names[] = {
3939
{RetFormat::UNDEF, ""},
@@ -68,7 +68,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me
6868
return false;
6969
}
7070

71-
static enum RetFormat ParseDataFormat(std::string& param, const std::string& strReq)
71+
static RetFormat ParseDataFormat(std::string& param, const std::string& strReq)
7272
{
7373
const std::string::size_type pos = strReq.rfind('.');
7474
if (pos == std::string::npos)

0 commit comments

Comments
 (0)