Skip to content

Commit

Permalink
Fix small issues pointed out by Cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
visuve committed Nov 15, 2023
1 parent a72a6c0 commit 50fbf89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions PictureBrowser/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ namespace PictureBrowser
{
std::filesystem::path TrimQuotes(const std::wstring& path)
{
std::wstring copy = path;

if (path.front() == '"' && path.back() == '"')
{
std::wstring copy = path;
copy.pop_back();
copy.erase(copy.cbegin());
return copy;
Expand Down
5 changes: 1 addition & 4 deletions PictureBrowser/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,7 @@ namespace PictureBrowser
std::unreachable();
}

if (_canvasWidget)
{
_canvasWidget->Resize();
}
_canvasWidget->Resize();

const RECT canvasArea =
{
Expand Down

0 comments on commit 50fbf89

Please sign in to comment.