Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Win][MSVC] REGRESSION(r282860): ClipboardItemBindingsDataSource.cpp(…
…147): error C2955: 'WTF::Ref': use of class template requires template argument list

https://bugs.webkit.org/show_bug.cgi?id=230599

Unreviewed build fix.


* Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp:
(WebCore::ClipboardItemBindingsDataSource::collectDataForWriting):
Conditioned out the ASSERT_UNUSED for MSVC.


Canonical link: https://commits.webkit.org/241998@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282867 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
fujii committed Sep 22, 2021
1 parent eb5eaf5 commit 8207214
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
2021-09-22 Fujii Hironori <Hironori.Fujii@sony.com>

[Win][MSVC] REGRESSION(r282860): ClipboardItemBindingsDataSource.cpp(147): error C2955: 'WTF::Ref': use of class template requires template argument list
https://bugs.webkit.org/show_bug.cgi?id=230599

Unreviewed build fix.

* Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp:
(WebCore::ClipboardItemBindingsDataSource::collectDataForWriting):
Conditioned out the ASSERT_UNUSED for MSVC.

2021-09-21 Jean-Yves Avenard <jya@apple.com>

Use SharedMemory for transferring appended buffers from SourceBuffer to the GPU process
Expand Down
Expand Up @@ -144,7 +144,9 @@ void ClipboardItemBindingsDataSource::collectDataForWriting(Clipboard& destinati
return;

Ref itemTypeLoader { *weakItemTypeLoader };
#if !COMPILER(MSVC)
ASSERT_UNUSED(this, notFound != m_itemTypeLoaders.findMatching([&] (auto& loader) { return loader.ptr() == itemTypeLoader.ptr(); }));
#endif

auto result = promise->result();
if (!result) {
Expand Down

0 comments on commit 8207214

Please sign in to comment.