fix build

- no warning on m_icon = icon in Notification
 - fix mac InternalLoader.cpp using Loader::get()->getLogs instead of log::Logs::list()
This commit is contained in:
HJfod 2022-11-30 17:46:00 +02:00
parent 5e9d8bbac8
commit 1807f19b51
2 changed files with 2 additions and 2 deletions
loader/src

View file

@ -19,7 +19,7 @@ void InternalLoader::platformMessageBox(char const* title, std::string const& in
void InternalLoader::openPlatformConsole() {
m_platformConsoleOpen = true;
for (auto const& log : Loader::get()->getLogs()) {
for (auto const& log : log::Logs::list()) {
std::cout << log->toString(true) << "\n";
}
}

View file

@ -23,7 +23,7 @@ bool Notification::init(std::string const& text, CCSprite* icon, float time) {
m_label->setScale(.6f);
m_bg->addChild(m_label);
if (m_icon = icon) {
if ((m_icon = icon)) {
m_bg->addChild(icon);
}