MCPcopy Create free account
hub / github.com/audacity/audacity / ClearClipboard

Function ClearClipboard

src/menus/EditMenus.cpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void ClearClipboard()
240{
241 if (wxTheClipboard->Open())
242 {
243 // Clear the data from the clipboard, so that the next paste doesn't
244 // attempt to import whatever the user copied from the OS in a prior
245 // action.
246 const auto success = wxTheClipboard->SetData(safenew wxTextDataObject);
247 assert(success);
248 wxTheClipboard->Clear();
249 wxTheClipboard->Close();
250 }
251}
252
253void OnCut(const CommandContext &context)
254{

Callers 2

EditMenus.cppFile · 0.85
OnCopyFunction · 0.85

Calls 4

OpenMethod · 0.45
SetDataMethod · 0.45
ClearMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected