From 59859d3da18244fa31f82c30ded14f619c3c967f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Feb 2012 13:58:58 +0000 Subject: [PATCH] Replace incorrect uses of wxString::empty() with the intended clear(). empty() doesn't empty the string but just checks for its emptiness, clear() was supposed to be used here instead. Thanks to PVS-Studio for finding these problems. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/translation.cpp | 2 +- src/msw/registry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/translation.cpp b/src/common/translation.cpp index ea6d25955b..bf586b24bb 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -986,7 +986,7 @@ bool wxMsgCatalogFile::LoadData(const DataBuffer& data, if ( m_charset == wxS("CHARSET") ) { // "CHARSET" is not valid charset, but lazy translator - m_charset.empty(); + m_charset.clear(); } } } diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 83d11c2769..948d9249fb 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -326,7 +326,7 @@ void wxRegKey::SetHkey(WXHKEY hKey) m_mode = Write; // reset old data - m_strKey.empty(); + m_strKey.clear(); m_dwLastError = 0; } -- 2.47.2