Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6227ade

Browse files
committed
[[ Bug 21532 ]] Remove AutoLock from AddTextToItem
This patch removes the `AutoLock` from `AddTextToItem` so that there is no pull and push after the item has been created. `AddTextToItem` is a convenience method that should be called on a locked clipboard that has any external data cleared.
1 parent 68f6335 commit 6227ade

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

engine/src/clipboard.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ bool MCClipboard::AddText(MCStringRef p_string)
276276

277277
bool MCClipboard::AddTextToItem(MCRawClipboardItem* p_item, MCStringRef p_string)
278278
{
279-
AutoLock t_lock(this);
280-
281279
// For each text encoding that the underlying clipboard supports, encode the
282280
// text and add it.
283281
bool t_success = true;

0 commit comments

Comments
 (0)