Fix some clang warnings and minor typo.

This commit is contained in:
Stephen Anthony 2020-11-18 22:18:07 -03:30
parent 0fcdc3ae6b
commit 6196c1f546
3 changed files with 4 additions and 4 deletions

View File

@ -117,7 +117,7 @@ void Cartridge3EWidget::loadConfig()
myBankWidgets[1]->setSelectedIndex(bank - myCart.romBankCount(), oldBank != bank);
}
CartDebugWidget::loadConfig();
CartDebugWidget::loadConfig(); // Intentionally calling grand-parent method
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -468,7 +468,7 @@ string RomListWidget::getToolTip(const Common::Point& pos) const
const string bytes = myDisasm->list[idx.y].bytes;
if(bytes.length() < size_t(idx.x + 1))
if(static_cast<Int32>(bytes.length()) < idx.x + 1)
return EmptyString;
Int32 val;

View File

@ -16,7 +16,7 @@
//============================================================================
#ifndef VIDEOAUDIO_DIALOG_HXX
#define D
#define VIDEOAUDIO_DIALOG_HXX
class CommandSender;
class CheckboxWidget;