Skip to content

Commit 8144b8f

Browse files
committed
[WPE] Unreviewed, fix build after 294837@main
https://bugs.webkit.org/show_bug.cgi?id=292917 Function 'setClipboardContentFromSpan' should be only defined if WPE_PLATFORM is enabled. * Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp: Canonical link: https://commits.webkit.org/294955@main
1 parent 921a9e8 commit 8144b8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Source/WebKit/UIProcess/wpe/WebPasteboardProxyWPE.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ void WebPasteboardProxy::readBuffer(IPC::Connection&, const String&, const Strin
111111
completionHandler({ });
112112
}
113113

114+
#if ENABLE(WPE_PLATFORM)
114115
static void setClipboardContentFromSpan(WPEClipboardContent* content, const char* type, const std::span<const char>& text)
115116
{
116117
GRefPtr<GBytes> bytes = adoptGRef(g_bytes_new(text.data(), text.size()));
117118
wpe_clipboard_content_set_bytes(content, type, bytes.get());
118119
}
120+
#endif
119121

120122
void WebPasteboardProxy::writeToClipboard(const String&, SelectionData&& selectionData)
121123
{

0 commit comments

Comments
 (0)