Skip to content

Commit 7b0072a

Browse files
committed
spacing changes , change do declval.
1 parent 7051f24 commit 7b0072a

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

cppwinrt/code_writers.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,14 +1881,14 @@ namespace cppwinrt
18811881
upcall,
18821882
bind<write_produce_args>(method_signature));
18831883
w.write(R"(
1884-
if (out_param_val)
1885-
{
1886-
*% = detach_from<%>(std::move(*out_param_val));
1887-
}
1888-
else
1889-
{
1890-
return impl::error_out_of_bounds;
1891-
}
1884+
if (out_param_val)
1885+
{
1886+
*% = detach_from<%>(std::move(*out_param_val));
1887+
}
1888+
else
1889+
{
1890+
return impl::error_out_of_bounds;
1891+
}
18921892
)",
18931893
name, method_signature.return_signature());
18941894

strings/base_collections_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ WINRT_EXPORT namespace winrt
576576

577577
return !added;
578578
}
579-
// todo also create a tryremove?
579+
580580
void Remove(K const& key)
581581
{
582582
typename impl::container_type_t<D>::node_type removedNode;

strings/base_error.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ WINRT_EXPORT namespace winrt
341341
non_originating_hresult_canceled(winrt::impl::slim_source_location const& sourceInformation = winrt::impl::slim_source_location::current()) noexcept : hresult_error(impl::error_canceled, hresult_error::avoid_originate, sourceInformation) {}
342342
non_originating_hresult_canceled(param::hstring const& message, winrt::impl::slim_source_location const& sourceInformation = winrt::impl::slim_source_location::current()) = delete;
343343
non_originating_hresult_canceled(take_ownership_from_abi_t , winrt::impl::slim_source_location const& sourceInformation = winrt::impl::slim_source_location::current()) = delete;
344-
345344
};
346345

347346
[[noreturn]] inline WINRT_IMPL_NOINLINE void throw_hresult(hresult const result, winrt::impl::slim_source_location const& sourceInformation = winrt::impl::slim_source_location::current())

strings/base_meta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ namespace winrt::impl
302302
template <typename D, typename K>
303303
struct has_try_lookup
304304
{
305-
template <typename U, typename = decltype(std::declval<U>().TryLookup(K{}))> static constexpr bool get_value(int) { return true; }
305+
template <typename U, typename = decltype(std::declval<U>().TryLookup(std::declval<K>()))> static constexpr bool get_value(int) { return true; }
306306
template <typename> static constexpr bool get_value(...) { return false; }
307307

308308
public:

0 commit comments

Comments
 (0)