mirror of
https://github.com/mozilla-firefox/firefox
synced 2026-08-10 11:48:50 +00:00
- use = default when relevant This matches the clang-tidy rules: - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html That we already use on source files Differential Revision: https://phabricator.services.mozilla.com/D296619
32 lines
664 B
C++
32 lines
664 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 mozStorageError_h
|
|
#define mozStorageError_h
|
|
|
|
#include "mozIStorageError.h"
|
|
#include "nsString.h"
|
|
|
|
namespace mozilla {
|
|
namespace storage {
|
|
|
|
class Error final : public mozIStorageError {
|
|
public:
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
|
NS_DECL_MOZISTORAGEERROR
|
|
|
|
Error(int aResult, const char* aMessage);
|
|
|
|
private:
|
|
~Error() = default;
|
|
|
|
int mResult;
|
|
nsCString mMessage;
|
|
};
|
|
|
|
} // namespace storage
|
|
} // namespace mozilla
|
|
|
|
#endif // mozStorageError_h
|