Bug 1329466 - Unbreak build on non-SPS platforms after
bug 1323100. r?mstange
MozReview-Commit-ID: Af1CuVYSNCj
--- a/tools/profiler/public/GeckoProfiler.h
+++ b/tools/profiler/public/GeckoProfiler.h
@@ -241,24 +241,29 @@ static inline void profiler_js_operation
static inline double profiler_time() { return 0; }
static inline double profiler_time(const mozilla::TimeStamp& aTime) { return 0; }
static inline bool profiler_in_privacy_mode() { return false; }
static inline void profiler_log(const char *str) {}
static inline void profiler_log(const char *fmt, va_list args) {}
+namespace mozilla {
+
class AutoProfilerRegister final MOZ_STACK_CLASS
{
- AutoProfilerRegister(const char* aName) {}
+public:
+ explicit AutoProfilerRegister(const char* aName) {}
private:
AutoProfilerRegister(const AutoProfilerRegister&) = delete;
AutoProfilerRegister& operator=(const AutoProfilerRegister&) = delete;
};
+} // namespace mozilla
+
#else
#include "GeckoProfilerImpl.h"
#endif
class MOZ_RAII GeckoProfilerInitRAII {
public: