mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1061048 - Fix some bad impliciti constructors in profiler; r=BenWa
This commit is contained in:
parent
81d2189d35
commit
66e1349be9
@ -23,7 +23,7 @@ public:
|
||||
// call Map() to attempt the mapping. There is no corresponding
|
||||
// Unmap() since the unmapping is done in the destructor. Failure
|
||||
// messages are sent to |aLog|.
|
||||
AutoObjectMapperPOSIX(void(*aLog)(const char*));
|
||||
explicit AutoObjectMapperPOSIX(void(*aLog)(const char*));
|
||||
|
||||
// Unmap the file on destruction of this object.
|
||||
~AutoObjectMapperPOSIX();
|
||||
|
@ -13,7 +13,7 @@
|
||||
class JSStreamWriter
|
||||
{
|
||||
public:
|
||||
JSStreamWriter(std::ostream& aStream);
|
||||
explicit JSStreamWriter(std::ostream& aStream);
|
||||
~JSStreamWriter();
|
||||
|
||||
void BeginObject();
|
||||
|
@ -12,7 +12,7 @@ class SyncProfile;
|
||||
class ProfilerBacktrace
|
||||
{
|
||||
public:
|
||||
ProfilerBacktrace(SyncProfile* aProfile);
|
||||
explicit ProfilerBacktrace(SyncProfile* aProfile);
|
||||
~ProfilerBacktrace();
|
||||
|
||||
void StreamJSObject(JSStreamWriter& b);
|
||||
|
@ -28,7 +28,7 @@ public:
|
||||
/**
|
||||
* ProfilerMarkerPayload takes ownership of aStack
|
||||
*/
|
||||
ProfilerMarkerPayload(ProfilerBacktrace* aStack = nullptr);
|
||||
explicit ProfilerMarkerPayload(ProfilerBacktrace* aStack = nullptr);
|
||||
ProfilerMarkerPayload(const mozilla::TimeStamp& aStartTime,
|
||||
const mozilla::TimeStamp& aEndTime,
|
||||
ProfilerBacktrace* aStack = nullptr);
|
||||
@ -91,7 +91,7 @@ private:
|
||||
class ProfilerMarkerImagePayload : public ProfilerMarkerPayload
|
||||
{
|
||||
public:
|
||||
ProfilerMarkerImagePayload(gfxASurface *aImg);
|
||||
explicit ProfilerMarkerImagePayload(gfxASurface *aImg);
|
||||
|
||||
protected:
|
||||
virtual void
|
||||
|
@ -184,7 +184,7 @@ JSObject* TableTicker::ToJSObject(JSContext *aCx)
|
||||
}
|
||||
|
||||
struct SubprocessClosure {
|
||||
SubprocessClosure(JSStreamWriter *aWriter)
|
||||
explicit SubprocessClosure(JSStreamWriter *aWriter)
|
||||
: mWriter(aWriter)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user