Oops, a little too much pruning, detected by compiling in OSX.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3206 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-09-14 21:44:24 +00:00
parent d83d91570e
commit 2ccebc9720
17 changed files with 22 additions and 22 deletions

View File

@ -300,7 +300,7 @@ void PNGLibrary::loadImagetoSurface(FBSurface& surface)
void PNGLibrary::writeComments(png_structp png_ptr, png_infop info_ptr,
const VariantList& comments)
{
uInt32 numComments = comments.size();
uInt32 numComments = uInt32(comments.size());
if(numComments == 0)
return;

View File

@ -1275,7 +1275,7 @@ void DebuggerParser::executeRunTo()
const CartDebug& cartdbg = debugger.cartDebug();
const CartDebug::DisassemblyList& list = cartdbg.disassembly().list;
uInt32 count = 0, max_iterations = list.size();
uInt32 count = 0, max_iterations = int(list.size());
// Create a progress dialog box to show the progress searching through the
// disassembly, since this may be a time-consuming operation

View File

@ -63,7 +63,7 @@ CartRamWidget::CartRamWidget(
const uInt16 maxlines = 6;
StringParser bs(desc, (fwidth - kScrollBarWidth) / myFontWidth);
const StringList& sl = bs.stringList();
uInt32 lines = sl.size();
uInt32 lines = uInt32(sl.size());
if(lines < 3) lines = 3;
if(lines > maxlines) lines = maxlines;

View File

@ -225,7 +225,7 @@ void RomListWidget::scrollToCurrent(int item)
_currentPos = item - _rows + 1;
}
int size = myDisasm->list.size();
int size = int(myDisasm->list.size());
if (_currentPos < 0 || _rows > size)
_currentPos = 0;
else if (_currentPos + _rows > size)

View File

@ -92,7 +92,7 @@ void TogglePixelWidget::setIntState(int value, bool swap)
int TogglePixelWidget::getIntState()
{
// Construct int based on current state and swap
uInt32 value = 0, size = _stateList.size();
uInt32 value = 0, size = int(_stateList.size());
for(uInt32 i = 0; i < size; ++i)
{

View File

@ -850,7 +850,7 @@ bool FrameBuffer::VideoModeList::empty() const
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt32 FrameBuffer::VideoModeList::size() const
{
return myModeList.size();
return uInt32(myModeList.size());
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -386,7 +386,7 @@ uInt32 M6502::addCondBreak(Expression* e, const string& name)
{
myBreakConds.emplace_back(unique_ptr<Expression>(e));
myBreakCondNames.push_back(name);
return myBreakConds.size() - 1;
return uInt32(myBreakConds.size() - 1);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -86,7 +86,7 @@ void CheckListWidget::drawWidget(bool hilite)
{
//cerr << "CheckListWidget::drawWidget\n";
FBSurface& s = _boss->dialog().surface();
int i, pos, len = _list.size();
int i, pos, len = int(_list.size());
// Draw a thin frame around the list and to separate columns
s.hLine(_x, _y, _x + _w - 1, kColor);

View File

@ -59,7 +59,7 @@ void EditableWidget::setText(const string& str, bool)
if(_filter(tolower(c)))
_editString.push_back(c);
_caretPos = _editString.size();
_caretPos = int(_editString.size());
_editScrollOffset = (_font.getStringWidth(_editString) - (getEditRect().width()));
if (_editScrollOffset < 0)
@ -275,7 +275,7 @@ bool EditableWidget::specialKeys(StellaKey key)
break;
case KBDK_E:
setCaretPos(_editString.size());
setCaretPos(int(_editString.size()));
break;
case KBDK_D:

View File

@ -53,7 +53,7 @@ int Font::getStringWidth(const string& str) const
{
// If no width table is specified, use the maximum width
if(!myFontDesc.width)
return myFontDesc.maxwidth * str.size();
return myFontDesc.maxwidth * int(str.size());
else
{
int space = 0;

View File

@ -45,7 +45,7 @@ class GameList
void setMd5(uInt32 i, const string& md5)
{ myArray[i]._md5 = md5; }
uInt32 size() const { return myArray.size(); }
uInt32 size() const { return uInt32(myArray.size()); }
void clear() { myArray.clear(); }
void appendGame(const string& name, const string& path, const string& md5,

View File

@ -72,14 +72,14 @@ void InputTextDialog::initialize(const GUI::Font& lfont, const GUI::Font& nfont,
// Calculate real dimensions
_w = fontWidth * 35;
_h = lineHeight * 4 + labels.size() * (lineHeight + 5);
_h = lineHeight * 4 + int(labels.size()) * (lineHeight + 5);
// Determine longest label
for(i = 0; i < labels.size(); ++i)
{
if(labels[i].length() > lwidth)
{
lwidth = labels[i].length();
lwidth = int(labels[i].length());
maxIdx = i;
}
}

View File

@ -147,7 +147,7 @@ const string& ListWidget::getSelectedString() const
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void ListWidget::scrollTo(int item)
{
int size = _list.size();
int size = int(_list.size());
if (item >= size)
item = size - 1;
if (item < 0)
@ -163,7 +163,7 @@ void ListWidget::scrollTo(int item)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void ListWidget::recalc()
{
int size = _list.size();
int size = int(_list.size());
if (_currentPos >= size)
_currentPos = size - 1;
@ -175,7 +175,7 @@ void ListWidget::recalc()
_editMode = false;
_scrollBar->_numEntries = _list.size();
_scrollBar->_numEntries = int(_list.size());
_scrollBar->_entriesPerPage = _rows;
// Reset to normal data entry
@ -340,7 +340,7 @@ bool ListWidget::handleEvent(Event::Type e)
bool handled = true;
int oldSelectedItem = _selectedItem;
int size = _list.size();
int size = int(_list.size());
switch(e)
{

View File

@ -129,7 +129,7 @@ void RomAuditDialog::auditRoms()
// the ROMs, since this is usually a time-consuming operation
ProgressDialog progress(this, instance().frameBuffer().font(),
"Auditing ROM files ...");
progress.setRange(0, files.size() - 1, 5);
progress.setRange(0, int(files.size()) - 1, 5);
// Create a entry for the GameList for each file
Properties props;

View File

@ -48,7 +48,7 @@ void StringListWidget::setList(const StringList& list)
void StringListWidget::drawWidget(bool hilite)
{
FBSurface& s = _boss->dialog().surface();
int i, pos, len = _list.size();
int i, pos, len = int(_list.size());
// Draw a thin frame around the list.
s.hLine(_x, _y, _x + _w - 1, kColor);

View File

@ -70,7 +70,7 @@ int TabWidget::addTab(const string& title)
{
// Add a new tab page
_tabs.push_back(Tab(title));
int numTabs = _tabs.size();
int numTabs = int(_tabs.size());
// Determine the new tab width
int newWidth = _font.getStringWidth(title) + 2 * kTabPadding;

View File

@ -201,7 +201,7 @@ Widget* Widget::setFocusForChain(GuiObject* boss, WidgetArray& arr,
bool emitFocusEvents)
{
FBSurface& s = boss->dialog().surface();
int size = arr.size(), pos = -1;
int size = int(arr.size()), pos = -1;
Widget* tmp;
for(int i = 0; i < size; ++i)
{