diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-03 20:54:06 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-04 17:23:02 +0800 |
| commit | b58c49291a400b3c45c07cb8cae2053cbd8d9b19 (patch) | |
| tree | 91333990d6263d66f6af0c7f97e7df76e4c890c8 | |
| parent | 40bbf3c14a782673bbd36c8a98adb0934b06add5 (diff) | |
| download | cru-b58c49291a400b3c45c07cb8cae2053cbd8d9b19.tar.gz cru-b58c49291a400b3c45c07cb8cae2053cbd8d9b19.tar.bz2 cru-b58c49291a400b3c45c07cb8cae2053cbd8d9b19.zip | |
Fix AutoHIMC no override destructor.
| -rw-r--r-- | include/cru/platform/gui/win/InputMethod.h | 2 | ||||
| -rw-r--r-- | src/platform/gui/win/InputMethod.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/cru/platform/gui/win/InputMethod.h b/include/cru/platform/gui/win/InputMethod.h index ab11aafa..c246cbd7 100644 --- a/include/cru/platform/gui/win/InputMethod.h +++ b/include/cru/platform/gui/win/InputMethod.h @@ -22,7 +22,7 @@ class CRU_WIN_GUI_API AutoHIMC { AutoHIMC(AutoHIMC&& other); AutoHIMC& operator=(AutoHIMC&& other); - ~AutoHIMC() override; + ~AutoHIMC(); HWND GetHwnd() const { return hwnd_; } diff --git a/src/platform/gui/win/InputMethod.cpp b/src/platform/gui/win/InputMethod.cpp index 6f5955fb..e5b75cdb 100644 --- a/src/platform/gui/win/InputMethod.cpp +++ b/src/platform/gui/win/InputMethod.cpp @@ -21,7 +21,6 @@ AutoHIMC::AutoHIMC(AutoHIMC&& other) AutoHIMC& AutoHIMC::operator=(AutoHIMC&& other) { if (this != &other) { - Object::operator=(std::move(other)); this->hwnd_ = other.hwnd_; this->handle_ = other.handle_; other.hwnd_ = nullptr; |
