Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNihelton committed Jul 25, 2022
1 parent 3cad66e commit 73c284d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Win32Utils
TEST(SetOnceNamedEvent, ValidUntilSet)
{
auto now = std::chrono::system_clock::now().time_since_epoch();
std::wstring name = L"a-global-unique-name-for-today" + std::to_wstring(now.count());
std::wstring name = L"a-global-unique-name-for-today" + std::to_wstring(now.count());
SetOnceNamedEvent event{name.c_str()};
EXPECT_TRUE(event.isValid());
EXPECT_TRUE(event.set());
Expand Down
3 changes: 2 additions & 1 deletion DistroLauncher/SetOnceNamedEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ namespace Win32Utils

SetOnceNamedEvent::SetOnceNamedEvent(SetOnceNamedEvent&& other) noexcept :
event{std::exchange(other.event, nullptr)}
{ }
{
}

bool SetOnceNamedEvent::isValid() const
{
Expand Down

0 comments on commit 73c284d

Please sign in to comment.