refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)

This commit is contained in:
Milan Burda 2021-11-03 12:41:45 +01:00 committed by GitHub
parent 2a2a1a834c
commit 65a980c673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 918 additions and 576 deletions

View file

@ -10,8 +10,6 @@
#include <string>
#include "base/macros.h"
namespace electron {
class ScopedHString {
@ -23,6 +21,10 @@ class ScopedHString {
ScopedHString();
~ScopedHString();
// disable copy
ScopedHString(const ScopedHString&) = delete;
ScopedHString& operator=(const ScopedHString&) = delete;
// Sets to |source|.
void Reset();
void Reset(const wchar_t* source);
@ -36,8 +38,6 @@ class ScopedHString {
private:
HSTRING str_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(ScopedHString);
};
} // namespace electron