From 1362836d13de7c23bb225341860bd262e86f00a3 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Tue, 27 Feb 2018 23:11:34 -0500 Subject: [PATCH] Bug 1429904 - Make FrameKey members const. r=njn MozReview-Commit-ID: KTYmCJM9tOH --HG-- extra : rebase_source : b5009f527bc0cd026e06c8b5da9f3d44fc4ea700 --- tools/profiler/core/ProfileBufferEntry.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)