Bug 1448027 - make constructors in the profiler explicit; r=mstange

Attempting to stand up the static analysis for Android builds revealed
that we weren't being explicit enough.
This commit is contained in:
Nathan Froyd 2018-03-27 10:51:32 -04:00
Родитель 052d391b9c
Коммит 60e1125026
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -82,7 +82,7 @@ public:
bool unwind(const EHEntry *aEntry, const void *stackBase);
uint32_t &operator[](int i) { return mRegs[i]; }
const uint32_t &operator[](int i) const { return mRegs[i]; }
EHState(const mcontext_t &);
explicit EHState(const mcontext_t &);
};
enum {

Просмотреть файл

@ -86,7 +86,7 @@ private:
class MOZ_STACK_CLASS AutoObjectMapperFaultyLib : public AutoObjectMapperPOSIX {
public:
AutoObjectMapperFaultyLib(void(*aLog)(const char*));
explicit AutoObjectMapperFaultyLib(void(*aLog)(const char*));
~AutoObjectMapperFaultyLib();