Skip to content

Commit

Permalink
Mac: fix compiler warnings introduced by commit 59eb2c2
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Fenton committed Aug 9, 2023
1 parent d9f435d commit c3bb612
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clientgui/DlgEventLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ void CDlgEventLog::FindErrorMessages(bool isFiltered) {
MESSAGE* message;
wxInt32 i = 0;
if (isFiltered) {
for (i; i < m_iFilteredDocCount; i++) {
for (i=0; i < m_iFilteredDocCount; i++) {
message = wxGetApp().GetDocument()->message(GetFilteredMessageIndex(i));
if (message) {
if (message->priority == MSG_USER_ALERT) {
Expand All @@ -1096,7 +1096,7 @@ void CDlgEventLog::FindErrorMessages(bool isFiltered) {
}
}
else {
for (i; i < m_iTotalDocCount; i++) {
for (i=0; i < m_iTotalDocCount; i++) {
message = wxGetApp().GetDocument()->message(i);
if (message) {
if (message->priority == MSG_USER_ALERT) {
Expand Down Expand Up @@ -1130,7 +1130,7 @@ void CDlgEventLog::FindProjectMessages(bool isFiltered) {
MESSAGE* message;
wxInt32 i = 0;
if (isFiltered) {
for (i; i < m_iFilteredDocCount; i++) {
for (i=0; i < m_iFilteredDocCount; i++) {
message = wxGetApp().GetDocument()->message(GetFilteredMessageIndex(i));
if (message) {
if (message->project.empty() || message->project == s_strFilteredProjectName) {
Expand All @@ -1140,7 +1140,7 @@ void CDlgEventLog::FindProjectMessages(bool isFiltered) {
}
}
else {
for (i; i < m_iTotalDocCount; i++) {
for (i=0; i < m_iTotalDocCount; i++) {
message = wxGetApp().GetDocument()->message(i);
if (message) {
if (message->project.empty() || message->project == s_strFilteredProjectName) {
Expand Down

0 comments on commit c3bb612

Please sign in to comment.