Skip to content

Commit 7051f24

Browse files
committed
undo changes to untouched files
1 parent e69a7fe commit 7051f24

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

strings/base_collections_input_map.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace winrt::impl
99
{
1010
static_assert(std::is_same_v<Container, std::remove_reference_t<Container>>, "Must be constructed with rvalue.");
1111

12-
explicit map_impl(Container&& values) : m_values(std::forward<Container>(values)) {}
12+
explicit map_impl(Container&& values) : m_values(std::forward<Container>(values))
13+
{
14+
}
1315

1416
auto& get_container() noexcept
1517
{

strings/base_collections_map.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ namespace winrt::impl
1212
{
1313
static_assert(std::is_same_v<Container, std::remove_reference_t<Container>>, "Must be constructed with rvalue.");
1414

15-
explicit observable_map_impl(Container&& values) : m_values(std::forward<Container>(values)) {}
15+
explicit observable_map_impl(Container&& values) : m_values(std::forward<Container>(values))
16+
{
17+
}
1618

1719
auto& get_container() noexcept
1820
{
@@ -46,7 +48,7 @@ WINRT_EXPORT namespace winrt
4648
{
4749
return make<impl::input_map<K, V, std::map<K, V, Compare, Allocator>>>(std::map<K, V, Compare, Allocator>{});
4850
}
49-
51+
5052
template <typename K, typename V, typename Compare = std::less<K>, typename Allocator = std::allocator<std::pair<K const, V>>>
5153
Windows::Foundation::Collections::IMap<K, V> single_threaded_map(std::map<K, V, Compare, Allocator>&& values)
5254
{

test/old_tests/UnitTests/hresult_error.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ TEST_CASE("hresult, throw_last_error")
494494
TEST_CASE("hresult, trim_hresult_message")
495495
{
496496
hresult_error e(E_FAIL, L":) is \u263A \n \t ");
497-
auto x = e.message();
497+
498498
REQUIRE(e.message() == L":) is \u263A");
499499
}
500500

@@ -580,7 +580,6 @@ TEST_CASE("hresult, to_message")
580580
}
581581
catch (...)
582582
{
583-
auto x = to_message();
584583
REQUIRE(to_message() == L"oh no, invalid handle");
585584
}
586585
}

test/test_cpp20/custom_error.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
using namespace winrt;
44
using namespace Windows::Foundation;
5-
using namespace Windows::Foundation::Collections;
65

76
namespace
87
{

0 commit comments

Comments
 (0)