Skip to content

Commit 6717891

Browse files
jonasschnelliDuddino
authored andcommitted
Fix re-declared scoped enum as unscoped (Causes issues with some compilers) (bitcoin#13180)
1 parent 48dc0e4 commit 6717891

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, ""},
@@ -69,7 +69,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me
6969
return false;
7070
}
7171

72-
static enum RetFormat ParseDataFormat(std::vector<std::string>& params, const std::string& strReq)
72+
static RetFormat ParseDataFormat(std::vector<std::string>& params, const std::string& strReq)
7373
{
7474
boost::split(params, strReq, boost::is_any_of("."));
7575
if (params.size() > 1) {

0 commit comments

Comments
 (0)