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); 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; 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; return EmptyString;
Int32 val; Int32 val;

View File

@ -16,7 +16,7 @@
//============================================================================ //============================================================================
#ifndef VIDEOAUDIO_DIALOG_HXX #ifndef VIDEOAUDIO_DIALOG_HXX
#define D #define VIDEOAUDIO_DIALOG_HXX
class CommandSender; class CommandSender;
class CheckboxWidget; class CheckboxWidget;
@ -38,7 +38,7 @@ class VideoAudioDialog : public Dialog
{ {
public: public:
VideoAudioDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font, VideoAudioDialog(OSystem& osystem, DialogContainer& parent, const GUI::Font& font,
int max_w, int max_h); int max_w, int max_h);
~VideoAudioDialog() override = default; ~VideoAudioDialog() override = default;
private: private: