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

@ -6,7 +6,6 @@
#define SHELL_COMMON_ELECTRON_COMMAND_LINE_H_
#include "base/command_line.h"
#include "base/macros.h"
#include "build/build_config.h"
namespace electron {
@ -14,6 +13,10 @@ namespace electron {
// Singleton to remember the original "argc" and "argv".
class ElectronCommandLine {
public:
// disable copy
ElectronCommandLine(const ElectronCommandLine&) = delete;
ElectronCommandLine& operator=(const ElectronCommandLine&) = delete;
static const base::CommandLine::StringVector& argv() { return argv_; }
static void Init(int argc, base::CommandLine::CharType** argv);
@ -26,8 +29,6 @@ class ElectronCommandLine {
private:
static base::CommandLine::StringVector argv_;
DISALLOW_IMPLICIT_CONSTRUCTORS(ElectronCommandLine);
};
} // namespace electron