summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerUICommon/Src/MemoryView.cpp
diff options
context:
space:
mode:
authorj4ck.fr0st <j4ck.fr0st@gmail.com>2010-02-21 18:55:00 +0000
committerj4ck.fr0st <j4ck.fr0st@gmail.com>2010-02-21 18:55:00 +0000
commitfdd635d273ff6ba6553bab34478ce2a93fdeb830 (patch)
tree1520b74b9d66713ff9e63df8cc1ba09ea77c76e9 /Source/Core/DebuggerUICommon/Src/MemoryView.cpp
parentf7f11211a1270d34f36a2507a00f25fbbfd7f203 (diff)
Warning cleanup, mainly shadowed variables, const/non-const and ctor initialization order
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5098 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerUICommon/Src/MemoryView.cpp')
-rw-r--r--Source/Core/DebuggerUICommon/Src/MemoryView.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DebuggerUICommon/Src/MemoryView.cpp b/Source/Core/DebuggerUICommon/Src/MemoryView.cpp
index 20bc94074a..43067eab25 100644
--- a/Source/Core/DebuggerUICommon/Src/MemoryView.cpp
+++ b/Source/Core/DebuggerUICommon/Src/MemoryView.cpp
@@ -289,12 +289,12 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
dc.DrawRectangle(0, 0, rc.width, 5+8);
// TODO - clean up this freaking mess!!!!!
- for (int i = -numRows; i <= numRows; i++)
+ for (int row = -numRows; row <= numRows; row++)
{
- unsigned int address = curAddress + i * align;
+ unsigned int address = curAddress + row * align;
- int rowY1 = rc.height / 2 + rowHeight * i - rowHeight / 2;
- int rowY2 = rc.height / 2 + rowHeight * i + rowHeight / 2;
+ int rowY1 = rc.height / 2 + rowHeight * row - rowHeight / 2;
+ int rowY2 = rc.height / 2 + rowHeight * row + rowHeight / 2;
wxString temp = wxString::Format(_T("%08x"), address);
u32 col = debugger->getColor(address);
@@ -309,7 +309,7 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
}
else
{
- dc.SetPen(i == 0 ? currentPen : nullPen);
+ dc.SetPen(row == 0 ? currentPen : nullPen);
}
if (address == debugger->getPC())