Bug 1045068 - Fix some bad implicit constructors in Gecko profiler; r=BenWa

This commit is contained in:
Ehsan Akhgari 2014-07-28 13:11:26 -04:00
parent d5f17caca4
commit 1e97ce13cd
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ static inline bool profiler_in_privacy_mode() { return false; }
class GeckoProfilerInitRAII {
public:
GeckoProfilerInitRAII(void* stackTop) {
explicit GeckoProfilerInitRAII(void* stackTop) {
profiler_init(stackTop);
}
~GeckoProfilerInitRAII() {

View File

@ -96,7 +96,7 @@ class ThreadProfile;
class ProfilerMarker {
friend class ProfilerLinkedList<ProfilerMarker>;
public:
ProfilerMarker(const char* aMarkerName,
explicit ProfilerMarker(const char* aMarkerName,
ProfilerMarkerPayload* aPayload = nullptr,
float aTime = 0);