Fix some more warnings in the GUI
This commit is contained in:
parent
3361b2dfc2
commit
bc5ed1da7e
|
|
@ -1834,7 +1834,7 @@ void Disassembly::paintEvent(QPaintEvent* event)
|
|||
painter.setFont(font());
|
||||
int x = -horizontalScrollBar()->value();
|
||||
|
||||
for(int column = 0; column < mRichText.size(); column++)
|
||||
for(int column = 0; column < (int)mRichText.size(); column++)
|
||||
{
|
||||
int w = getColumnWidth(column);
|
||||
int h = getViewableRowsCount() * getRowHeight();
|
||||
|
|
@ -1847,7 +1847,7 @@ void Disassembly::paintEvent(QPaintEvent* event)
|
|||
|
||||
QVector<QTextLayout::FormatRange> selections;
|
||||
|
||||
for(int rowOffset = 0; rowOffset < mRichText[column].size(); rowOffset++)
|
||||
for(int rowOffset = 0; rowOffset < (int)mRichText[column].size(); rowOffset++)
|
||||
{
|
||||
if(rowOffset > 0)
|
||||
columnText += QChar::LineSeparator;
|
||||
|
|
@ -1974,7 +1974,7 @@ void Disassembly::paintEvent(QPaintEvent* event)
|
|||
}
|
||||
else
|
||||
{
|
||||
for(int rowOffset = 0; rowOffset < mRichText[column].size(); rowOffset++)
|
||||
for(int rowOffset = 0; rowOffset < (int)mRichText[column].size(); rowOffset++)
|
||||
{
|
||||
const RichTextInfo & info = mRichText[column][rowOffset];
|
||||
if(info.alive)
|
||||
|
|
|
|||
|
|
@ -776,7 +776,7 @@ void AppearanceDialog::selectColor(QLineEdit* lineEdit, QColorDialog::ColorDialo
|
|||
}
|
||||
}
|
||||
auto result = dialog.exec();
|
||||
for(duint i = 0; i < dialog.customCount(); i++)
|
||||
for(int i = 0; i < dialog.customCount(); i++)
|
||||
{
|
||||
QColor customColor = dialog.customColor(i);
|
||||
QString colorName = customColor.name().toUpper();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ QString ZehSymbolTable::getCellContent(int r, int c)
|
|||
bool ZehSymbolTable::isValidIndex(int r, int c)
|
||||
{
|
||||
QMutexLocker lock(&mMutex);
|
||||
return r >= 0 && r < mData.size() && c >= 0 && c <= ColUndecorated;
|
||||
return r >= 0 && r < (int)mData.size() && c >= 0 && c <= ColUndecorated;
|
||||
}
|
||||
|
||||
void ZehSymbolTable::sortRows(int column, bool ascending)
|
||||
|
|
|
|||
|
|
@ -710,7 +710,7 @@ void TraceFilePage::MemoryAccessInfo(unsigned long long index, duint* address, d
|
|||
{
|
||||
auto count = MemoryAccessCount(index);
|
||||
auto base = memoryOperandOffset.at(index);
|
||||
for(size_t i = 0; i < count; i++)
|
||||
for(int i = 0; i < count; i++)
|
||||
{
|
||||
address[i] = memoryAddress.at(base + i);
|
||||
oldMemory[i] = this->oldMemory.at(base + i);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ int TraceFileSearchConstantRange(TraceFileReader* file, duint start, duint end)
|
|||
if(memAccessCount > 0)
|
||||
{
|
||||
file->MemoryAccessInfo(index, memAddr, memOldContent, memNewContent, isValid);
|
||||
for(size_t i = 0; i < memAccessCount; i++)
|
||||
for(int i = 0; i < memAccessCount; i++)
|
||||
{
|
||||
found |= inRange(memAddr[i], start, end);
|
||||
found |= inRange(memOldContent[i], start, end);
|
||||
|
|
@ -108,7 +108,7 @@ int TraceFileSearchMemReference(TraceFileReader* file, duint address)
|
|||
if(memAccessCount > 0)
|
||||
{
|
||||
file->MemoryAccessInfo(index, memAddr, memOldContent, memNewContent, isValid);
|
||||
for(size_t i = 0; i < memAccessCount; i++)
|
||||
for(int i = 0; i < memAccessCount; i++)
|
||||
{
|
||||
found |= inRange(memAddr[i], address, address + sizeof(duint) - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue