mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-22 01:52:35 +02:00
Remove enum specifier (to avoid re-declare scoped enum as unscoped)
This commit is contained in:
parent
66cc47be98
commit
43f3dec009
@ -33,7 +33,7 @@ enum class RetFormat {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
enum RetFormat rf;
|
RetFormat rf;
|
||||||
const char* name;
|
const char* name;
|
||||||
} rf_names[] = {
|
} rf_names[] = {
|
||||||
{RetFormat::UNDEF, ""},
|
{RetFormat::UNDEF, ""},
|
||||||
@ -68,7 +68,7 @@ static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string me
|
|||||||
return false;
|
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('.');
|
const std::string::size_type pos = strReq.rfind('.');
|
||||||
if (pos == std::string::npos)
|
if (pos == std::string::npos)
|
||||||
|
Loading…
Reference in New Issue
Block a user