Debugger: codacy warnings

This commit is contained in:
Ty Lamontagne 2021-08-02 01:26:20 -04:00 committed by refractionpcsx2
parent 823618aea8
commit 87ee413141
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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);
}
}