Remove virtual attribute from CefStringBase destructor (fixes #3587)

This commit is contained in:
Nik Pavlov 2023-11-14 17:20:26 +00:00 committed by Marshall Greenblatt
parent 53ef570f57
commit 1886f68490
1 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ struct CefStringTraitsUTF16 {
/// modifying CEF strings from multiple threads.
///
template <class traits>
class CefStringBase {
class CefStringBase final {
public:
typedef typename traits::char_type char_type;
typedef typename traits::struct_type struct_type;
@ -442,7 +442,7 @@ class CefStringBase {
Attach(const_cast<struct_type*>(src), false);
}
virtual ~CefStringBase() { ClearAndFree(); }
~CefStringBase() { ClearAndFree(); }
/// The following methods are named for compatibility with the standard
/// library string template types.