Commit 37cb3cea authored by Chen Bill's avatar Chen Bill Committed by GitHub

use override in class DeckBuilder (#2664)

* update DeckBuilder::FilterCards()

* use override
parent 937c214b
......@@ -1343,13 +1343,12 @@ void DeckBuilder::FilterCards() {
all,
name,
setcode
} type;
bool exclude;
element_t(): type(type_t::all), exclude(false) {}
} type{ type_t::all };
bool exclude{ false };
};
const wchar_t* pstr = mainGame->ebCardName->getText();
int trycode = BufferIO::GetVal(pstr);
std::wstring str = std::wstring(pstr);
std::wstring str{ pstr };
std::vector<element_t> query_elements;
if(mainGame->gameConf.search_multiple_keywords) {
const wchar_t separator = mainGame->gameConf.search_multiple_keywords == 1 ? L' ' : L'+';
......
......@@ -11,7 +11,7 @@ namespace ygo {
class DeckBuilder: public irr::IEventReceiver {
public:
virtual bool OnEvent(const irr::SEvent& event);
bool OnEvent(const irr::SEvent& event) override;
void Initialize();
void Terminate();
void GetHoveredCard();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment