From 544a0e33315f51be62f1f7b1f79ba843d2e4f0e2 Mon Sep 17 00:00:00 2001 From: Han Zhang Date: Tue, 11 Jun 2024 14:28:02 +0800 Subject: [PATCH] Update --- src/CalcViewModel/Common/CopyPasteManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcViewModel/Common/CopyPasteManager.cpp b/src/CalcViewModel/Common/CopyPasteManager.cpp index 6b259b61..c2d4bc6d 100644 --- a/src/CalcViewModel/Common/CopyPasteManager.cpp +++ b/src/CalcViewModel/Common/CopyPasteManager.cpp @@ -67,7 +67,7 @@ void CopyPasteManager::CopyToClipboard(String ^ stringToCopy) // Copy the string to the clipboard auto dataPackage = ref new DataPackage(); dataPackage->SetText(stringToCopy); - Clipboard::SetContentWithOptions(dataPackage, ref new ClipboardContentOptions()); + Clipboard::SetContentWithOptions(dataPackage, nullptr); } IAsyncOperation ^ CopyPasteManager::GetStringToPaste(ViewMode mode, CategoryGroupType modeType, NumberBase programmerNumberBase, BitLength bitLengthType)