commit 757a8fa809b490a7a8c5a1398a622aa3ba6e905e parent 07c6119afa8b56ce5e2ba60b805868d87116690b Author: Simon Farre <sfarre@mozilla.com> Date: Mon, 10 Nov 2025 14:10:09 +0000 Bug 1999194 - Fix move pessimization r=tschuster Remaining types have move constructors making this now moveable. Differential Revision: https://phabricator.services.mozilla.com/D271927 Diffstat:
| M | dom/security/CSPViolationData.h | | | 16 | ++++++++-------- |
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/dom/security/CSPViolationData.h b/dom/security/CSPViolationData.h @@ -56,16 +56,16 @@ struct CSPViolationData { const nsAString& aSample); BlockedContentSource BlockedContentSourceOrUnknown() const; - const uint32_t mViolatedPolicyIndex; - const Resource mResource; - const CSPDirective mEffectiveDirective; + uint32_t mViolatedPolicyIndex; + Resource mResource; + CSPDirective mEffectiveDirective; // String representation of the URL. The empty string represents a null-URL. - const nsCString mSourceFile; - const uint32_t mLineNumber; - const uint32_t mColumnNumber; + nsCString mSourceFile; + uint32_t mLineNumber; + uint32_t mColumnNumber; RefPtr<Element> mElement; - const nsString mSample; - const nsCString mHashSHA256; + nsString mSample; + nsCString mHashSHA256; }; } // namespace mozilla::dom