- use = default when relevant - use = delete on public method instead of unimplemented private - use range-based loop This matches the clang-tidy rules: - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-delete.html - https://clang.llvm.org/extra/clang-tidy/checks/modernize/loop-convert.html That we already use on source files Differential Revision: https://phabricator.services.mozilla.com/D296618
34 lines
904 B
C++
34 lines
904 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_finalizationwitnessservice_h_
|
|
#define mozilla_finalizationwitnessservice_h_
|
|
|
|
#include "nsIFinalizationWitnessService.h"
|
|
#include "nsIObserver.h"
|
|
|
|
namespace mozilla {
|
|
|
|
/**
|
|
* XPConnect initializer, for use in the main thread.
|
|
*/
|
|
class FinalizationWitnessService final : public nsIFinalizationWitnessService,
|
|
public nsIObserver {
|
|
public:
|
|
void operator=(const FinalizationWitnessService* other) = delete;
|
|
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSIFINALIZATIONWITNESSSERVICE
|
|
NS_DECL_NSIOBSERVER
|
|
|
|
nsresult Init();
|
|
|
|
private:
|
|
~FinalizationWitnessService() = default;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_finalizationwitnessservice_h_
|