mirror of https://github.com/PCSX2/pcsx2.git
Debugger: codacy warnings
This commit is contained in:
parent
823618aea8
commit
87ee413141
|
@ -53,7 +53,7 @@ enum ReferenceIndexType
|
|||
class MipsExpressionFunctions : public IExpressionFunctions
|
||||
{
|
||||
public:
|
||||
MipsExpressionFunctions(DebugInterface* cpu)
|
||||
explicit MipsExpressionFunctions(DebugInterface* cpu)
|
||||
: cpu(cpu){};
|
||||
|
||||
virtual bool parseReference(char* str, u64& referenceIndex)
|
||||
|
|
|
@ -67,7 +67,7 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu)
|
|||
int maxLen = 0;
|
||||
for (int k = 0; k < cpu->getRegisterCount(i); k++)
|
||||
{
|
||||
maxLen = std::max<int>(maxLen, strlen(cpu->getRegisterName(i, k)));
|
||||
maxLen = std::max<int>(maxLen, strlen(cpu->getRegisterName(i, k))); /* Flawfinder: ignore */
|
||||
}
|
||||
|
||||
const int x = 17 + (maxLen + 2) * charWidth;
|
||||
|
@ -244,7 +244,7 @@ void CtrlRegisterList::OnDraw(wxDC& dc)
|
|||
dc.DrawRectangle(x, 0, piece + 1, rowHeight);
|
||||
|
||||
// center text
|
||||
x += (piece - strlen(name) * charWidth) / 2;
|
||||
x += (piece - strlen(name) * charWidth) / 2; /* Flawfinder: ignore */
|
||||
dc.DrawText(wxString(name, wxConvUTF8), x, 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue