- 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
26 lines
532 B
C++
26 lines
532 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_ml_Utils_h
|
|
#define mozilla_ml_Utils_h
|
|
|
|
#include "nsIMLUtils.h"
|
|
|
|
namespace mozilla::ml {
|
|
|
|
class MLUtils final : public nsIMLUtils {
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSIMLUTILS
|
|
|
|
MLUtils() = default;
|
|
|
|
private:
|
|
~MLUtils() = default;
|
|
};
|
|
|
|
} // namespace mozilla::ml
|
|
|
|
#endif // ifndef mozilla_ml_Utils_h
|