diff --git a/tools/profiler/core/ProfileBufferEntry.h b/tools/profiler/core/ProfileBufferEntry.h index 4415bf0e798e..cda7df95b490 100644 --- a/tools/profiler/core/ProfileBufferEntry.h +++ b/tools/profiler/core/ProfileBufferEntry.h @@ -172,11 +172,11 @@ public: struct FrameKey { // This cannot be a std::string, as it is not memmove compatible, which // is used by nsHashTable - nsCString mLocation; - mozilla::Maybe mLine; - mozilla::Maybe mCategory; - mozilla::Maybe mJITAddress; - mozilla::Maybe mJITDepth; + const nsCString mLocation; + const mozilla::Maybe mLine; + const mozilla::Maybe mCategory; + const mozilla::Maybe mJITAddress; + const mozilla::Maybe mJITDepth; explicit FrameKey(const char* aLocation) : mLocation(aLocation)