Bug 1061048 - Fix some bad impliciti constructors in profiler; r=BenWa

This commit is contained in:
Ehsan Akhgari 2014-09-02 09:44:54 -04:00
parent 81d2189d35
commit 66e1349be9
5 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -13,7 +13,7 @@
class JSStreamWriter
{
public:
JSStreamWriter(std::ostream& aStream);
explicit JSStreamWriter(std::ostream& aStream);
~JSStreamWriter();
void BeginObject();

View File

@ -12,7 +12,7 @@ class SyncProfile;
class ProfilerBacktrace
{
public:
ProfilerBacktrace(SyncProfile* aProfile);
explicit ProfilerBacktrace(SyncProfile* aProfile);
~ProfilerBacktrace();
void StreamJSObject(JSStreamWriter& b);

View File

@ -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

View File

@ -184,7 +184,7 @@ JSObject* TableTicker::ToJSObject(JSContext *aCx)
}
struct SubprocessClosure {
SubprocessClosure(JSStreamWriter *aWriter)
explicit SubprocessClosure(JSStreamWriter *aWriter)
: mWriter(aWriter)
{}