Skip to content

Commit af207a2

Browse files
quantum5gnif
authored andcommitted
[idd] helper: remove compiler warnings
1 parent 3ed08ba commit af207a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

idd/LGIddHelper/CConfigWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ LRESULT CConfigWindow::onCommand(WORD id, WORD code, HWND hwnd)
220220

221221
LRESULT result = m_settings.setModes(*m_modes);
222222
if (result != ERROR_SUCCESS)
223-
DEBUG_ERROR_HR(result, "Failed to save modes");
223+
DEBUG_ERROR_HR((HRESULT) result, "Failed to save modes");
224224
}
225225
else if (hwnd == *m_modeDelete && code == BN_CLICKED && m_modes)
226226
{
@@ -234,7 +234,7 @@ LRESULT CConfigWindow::onCommand(WORD id, WORD code, HWND hwnd)
234234

235235
LRESULT result = m_settings.setModes(*m_modes);
236236
if (result != ERROR_SUCCESS)
237-
DEBUG_ERROR_HR(result, "Failed to save modes");
237+
DEBUG_ERROR_HR((HRESULT) result, "Failed to save modes");
238238

239239
updateModeList();
240240
onModeListSelectChange();

idd/LGIddHelper/CEditWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ std::wstring CEditWidget::getValue()
1515
{
1616
std::wstring result;
1717
result.resize(Edit_GetTextLength(m_hwnd));
18-
Edit_GetText(m_hwnd, result.data(), result.size() + 1);
18+
Edit_GetText(m_hwnd, result.data(), (int) (result.size() + 1));
1919
return result;
2020
}
2121

idd/LGIddHelper/CListBox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int CListBox::getSel()
4242

4343
int CListBox::getData(int index)
4444
{
45-
return ListBox_GetItemData(m_hwnd, index);
45+
return (int) ListBox_GetItemData(m_hwnd, index);
4646
}
4747

4848
void CListBox::setSel(int index)

0 commit comments

Comments
 (0)