mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-02 22:28:14 +00:00
[idd] helper: remove compiler warnings
This commit is contained in:
@@ -220,7 +220,7 @@ LRESULT CConfigWindow::onCommand(WORD id, WORD code, HWND hwnd)
|
|||||||
|
|
||||||
LRESULT result = m_settings.setModes(*m_modes);
|
LRESULT result = m_settings.setModes(*m_modes);
|
||||||
if (result != ERROR_SUCCESS)
|
if (result != ERROR_SUCCESS)
|
||||||
DEBUG_ERROR_HR(result, "Failed to save modes");
|
DEBUG_ERROR_HR((HRESULT) result, "Failed to save modes");
|
||||||
}
|
}
|
||||||
else if (hwnd == *m_modeDelete && code == BN_CLICKED && m_modes)
|
else if (hwnd == *m_modeDelete && code == BN_CLICKED && m_modes)
|
||||||
{
|
{
|
||||||
@@ -234,7 +234,7 @@ LRESULT CConfigWindow::onCommand(WORD id, WORD code, HWND hwnd)
|
|||||||
|
|
||||||
LRESULT result = m_settings.setModes(*m_modes);
|
LRESULT result = m_settings.setModes(*m_modes);
|
||||||
if (result != ERROR_SUCCESS)
|
if (result != ERROR_SUCCESS)
|
||||||
DEBUG_ERROR_HR(result, "Failed to save modes");
|
DEBUG_ERROR_HR((HRESULT) result, "Failed to save modes");
|
||||||
|
|
||||||
updateModeList();
|
updateModeList();
|
||||||
onModeListSelectChange();
|
onModeListSelectChange();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ std::wstring CEditWidget::getValue()
|
|||||||
{
|
{
|
||||||
std::wstring result;
|
std::wstring result;
|
||||||
result.resize(Edit_GetTextLength(m_hwnd));
|
result.resize(Edit_GetTextLength(m_hwnd));
|
||||||
Edit_GetText(m_hwnd, result.data(), result.size() + 1);
|
Edit_GetText(m_hwnd, result.data(), (int) (result.size() + 1));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ int CListBox::getSel()
|
|||||||
|
|
||||||
int CListBox::getData(int index)
|
int CListBox::getData(int index)
|
||||||
{
|
{
|
||||||
return ListBox_GetItemData(m_hwnd, index);
|
return (int) ListBox_GetItemData(m_hwnd, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CListBox::setSel(int index)
|
void CListBox::setSel(int index)
|
||||||
|
|||||||
Reference in New Issue
Block a user