From 2a70c8aee235f219cd4e746cda582bdac474aeca Mon Sep 17 00:00:00 2001 From: guanzengkun Date: Tue, 21 Mar 2023 15:54:54 +0800 Subject: [PATCH] Description: Fixed the typo of graphic-wms destroy IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I6OVUD Feature or Bugfix: Feature Binary Source:No Signed-off-by: guanzengkun --- test/sample_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sample_window.cpp b/test/sample_window.cpp index 32a78a8..75c971f 100644 --- a/test/sample_window.cpp +++ b/test/sample_window.cpp @@ -108,7 +108,7 @@ public: case CONDITION3: { Window* window = g_rootView2->GetBoundWindow(); if (window != nullptr) { - Window::DestoryWindow(window); + Window::DestroyWindow(window); } else { g_rootView2->Invalidate(); CreateDefaultWindow(g_rootView2, 70, 75); // 70: x, 75: y @@ -239,10 +239,10 @@ void TestWindowNumLimit() GRAPHIC_LOGI("CreateDefaultWindow, i = %d", i); if (i == 10) { // 10, 9: Delete the tenth window in the 11th loop. Window* window = g_rootViewList[9]->GetBoundWindow(); - Window::DestoryWindow(window); + Window::DestroyWindow(window); } else if (i == 15) { // 15, 5: Delete the sixth window in the 16th loop. Window* window = g_rootViewList[5]->GetBoundWindow(); - Window::DestoryWindow(window); + Window::DestroyWindow(window); } RootView* rootView = RootView::GetWindowRootView(); g_rootViewList[i] = rootView; -- Gitee