mirror of https://github.com/stella-emu/stella.git
Fix minor compile warnings.
This commit is contained in:
parent
f1c8f7b2b6
commit
124ee44d39
|
@ -37,7 +37,6 @@ NavigationWidget::NavigationWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
if(!myUseMinimalUI)
|
if(!myUseMinimalUI)
|
||||||
{
|
{
|
||||||
const int
|
const int
|
||||||
fontHeight = _font.getFontHeight(),
|
|
||||||
fontWidth = _font.getMaxCharWidth(),
|
fontWidth = _font.getMaxCharWidth(),
|
||||||
BTN_GAP = fontWidth / 4;
|
BTN_GAP = fontWidth / 4;
|
||||||
const bool smallIcon = lineHeight < 26;
|
const bool smallIcon = lineHeight < 26;
|
||||||
|
@ -181,7 +180,7 @@ void NavigationWidget::PathWidget::setPath(const string& path)
|
||||||
cutFirst = true;
|
cutFirst = true;
|
||||||
|
|
||||||
// Update/add widgets for path parts display
|
// Update/add widgets for path parts display
|
||||||
int idx = 0;
|
size_t idx = 0;
|
||||||
for(auto it = paths.rbegin(); it != paths.rend(); ++it, ++idx)
|
for(auto it = paths.rbegin(); it != paths.rend(); ++it, ++idx)
|
||||||
{
|
{
|
||||||
const string& curPath = *it;
|
const string& curPath = *it;
|
||||||
|
@ -229,7 +228,7 @@ void NavigationWidget::PathWidget::setPath(const string& path)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
const string& NavigationWidget::PathWidget::getPath(int idx) const
|
const string& NavigationWidget::PathWidget::getPath(int idx) const
|
||||||
{
|
{
|
||||||
assert(idx < myFolderList.size());
|
assert(size_t(idx) < myFolderList.size());
|
||||||
return myFolderList[idx]->getPath();
|
return myFolderList[idx]->getPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class NavigationWidget : public Widget
|
||||||
~FolderLinkWidget() = default;
|
~FolderLinkWidget() = default;
|
||||||
|
|
||||||
void setPath(const string& path) { myPath = path; }
|
void setPath(const string& path) { myPath = path; }
|
||||||
const string& getPath() const { return myPath; };
|
const string& getPath() const { return myPath; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void drawWidget(bool hilite) override;
|
void drawWidget(bool hilite) override;
|
||||||
|
|
Loading…
Reference in New Issue