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() { ...@@ -1343,13 +1343,12 @@ void DeckBuilder::FilterCards() {
all, all,
name, name,
setcode setcode
} type; } type{ type_t::all };
bool exclude; bool exclude{ false };
element_t(): type(type_t::all), exclude(false) {}
}; };
const wchar_t* pstr = mainGame->ebCardName->getText(); const wchar_t* pstr = mainGame->ebCardName->getText();
int trycode = BufferIO::GetVal(pstr); int trycode = BufferIO::GetVal(pstr);
std::wstring str = std::wstring(pstr); std::wstring str{ pstr };
std::vector<element_t> query_elements; std::vector<element_t> query_elements;
if(mainGame->gameConf.search_multiple_keywords) { if(mainGame->gameConf.search_multiple_keywords) {
const wchar_t separator = mainGame->gameConf.search_multiple_keywords == 1 ? L' ' : L'+'; const wchar_t separator = mainGame->gameConf.search_multiple_keywords == 1 ? L' ' : L'+';
......
...@@ -11,7 +11,7 @@ namespace ygo { ...@@ -11,7 +11,7 @@ namespace ygo {
class DeckBuilder: public irr::IEventReceiver { class DeckBuilder: public irr::IEventReceiver {
public: public:
virtual bool OnEvent(const irr::SEvent& event); bool OnEvent(const irr::SEvent& event) override;
void Initialize(); void Initialize();
void Terminate(); void Terminate();
void GetHoveredCard(); 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