Skip to content

Commit

Permalink
Merge pull request #1 from Vaani-del/main
Browse files Browse the repository at this point in the history
Resolve warnings
  • Loading branch information
GamesTrap authored Jun 5, 2022
2 parents 8d845f3 + 57ec2e4 commit e635e58
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ModernDialogs/ModernDialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ bool FileExists(const std::string& filePathAndName)

//-------------------------------------------------------------------------------------------------------------------//

BOOL CALLBACK BrowseCallbackProcWEnum(HWND hwndChild, LPARAM lParam)
BOOL CALLBACK BrowseCallbackProcWEnum(HWND hwndChild, LPARAM /*lParam*/)
{
std::wstring buffer;
buffer.resize(255);
GetClassNameW(hwndChild, buffer.data(), buffer.size());
GetClassNameW(hwndChild, buffer.data(), static_cast<int>(buffer.size()));
if(buffer == L"SysTreeView32")
{
HTREEITEM hNode = TreeView_GetSelection(hwndChild);
Expand All @@ -198,7 +198,7 @@ BOOL CALLBACK BrowseCallbackProcWEnum(HWND hwndChild, LPARAM lParam)

//-------------------------------------------------------------------------------------------------------------------//

int32_t CALLBACK BrowseCallbackProcW(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
int32_t CALLBACK BrowseCallbackProcW(HWND hwnd, UINT uMsg, LPARAM /*lp*/, LPARAM pData)
{
switch(uMsg)
{
Expand Down Expand Up @@ -547,8 +547,6 @@ MD::Selection GetSelection(const int32_t response, const MD::Buttons buttons)
default:
return MD::Selection::None;
}

return MD::Selection::None;
}

//-------------------------------------------------------------------------------------------------------------------//
Expand All @@ -572,8 +570,6 @@ uint32_t GetIcon(const MD::Style style)
default:
return MB_ICONINFORMATION;
}

return MB_ICONINFORMATION;
}

//-------------------------------------------------------------------------------------------------------------------//
Expand All @@ -595,8 +591,6 @@ uint32_t GetButtons(const MD::Buttons buttons)
default:
return MB_OK;
}

return MB_OK;
}

//-------------------------------------------------------------------------------------------------------------------//
Expand Down Expand Up @@ -1866,4 +1860,4 @@ MD::Selection MD::ShowMsgBox(const std::string& title, const std::string& messag
MD::Selection MD::ShowMsgBox(const std::string& title, const std::string& message)
{
return ShowMsgBox(title, message, MD::Style::Info, MD::Buttons::OK);
}
}

0 comments on commit e635e58

Please sign in to comment.