mirror of https://github.com/stella-emu/stella.git
Fixed a few warnings from clang.
This commit is contained in:
parent
1f4b1d06bc
commit
65265382d1
|
@ -470,6 +470,7 @@ Int32 HighScoresManager::convert(Int32 val, uInt32 maxVal, bool isBCD, bool zero
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
void replaceAll(std::string& str, const std::string& from, const std::string& to) {
|
void replaceAll(std::string& str, const std::string& from, const std::string& to) {
|
||||||
if(from.empty())
|
if(from.empty())
|
||||||
return;
|
return;
|
||||||
|
@ -479,6 +480,7 @@ void replaceAll(std::string& str, const std::string& from, const std::string& to
|
||||||
start_pos += to.length(); // In case 'to' contains 'from', like replacing 'x' with 'yx'
|
start_pos += to.length(); // In case 'to' contains 'from', like replacing 'x' with 'yx'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
bool HighScoresManager::getPropBool(const json& jprops, const string& key,
|
bool HighScoresManager::getPropBool(const json& jprops, const string& key,
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
class OSystem;
|
class OSystem;
|
||||||
|
|
||||||
#include "Props.hxx"
|
#include "Props.hxx"
|
||||||
#include "json.hxx"
|
#include "json_lib.hxx"
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ bool EditableWidget::tryInsertChar(char c, int pos)
|
||||||
if(_filter(tolower(c)))
|
if(_filter(tolower(c)))
|
||||||
{
|
{
|
||||||
killSelectedText();
|
killSelectedText();
|
||||||
if(!_maxLen || _editString.length() < _maxLen)
|
if(!_maxLen || static_cast<int>(_editString.length()) < _maxLen)
|
||||||
{
|
{
|
||||||
myUndoHandler->doChar(); // aggregate single chars
|
myUndoHandler->doChar(); // aggregate single chars
|
||||||
_editString.insert(pos, 1, c);
|
_editString.insert(pos, 1, c);
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
#include "HighScoresDialog.hxx"
|
#include "HighScoresDialog.hxx"
|
||||||
|
|
||||||
static constexpr int BUTTON_GFX_W = 10, BUTTON_GFX_H = 10;
|
static constexpr int BUTTON_GFX_H = 10;
|
||||||
static constexpr int BUTTON_GFX_W_LARGE = 16, BUTTON_GFX_H_LARGE = 16;
|
static constexpr int BUTTON_GFX_H_LARGE = 16;
|
||||||
|
|
||||||
static constexpr std::array<uInt32, BUTTON_GFX_H> PREV_GFX = {
|
static constexpr std::array<uInt32, BUTTON_GFX_H> PREV_GFX = {
|
||||||
0b0000110000,
|
0b0000110000,
|
||||||
|
|
Loading…
Reference in New Issue