summaryrefslogtreecommitdiff
path: root/js/xpconnect/loader/mozJSComponentLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/loader/mozJSComponentLoader.cpp')
-rw-r--r--js/xpconnect/loader/mozJSComponentLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/xpconnect/loader/mozJSComponentLoader.cpp b/js/xpconnect/loader/mozJSComponentLoader.cpp
index f4f3297469..f8af02ac0d 100644
--- a/js/xpconnect/loader/mozJSComponentLoader.cpp
+++ b/js/xpconnect/loader/mozJSComponentLoader.cpp
@@ -255,7 +255,7 @@ class MOZ_STACK_CLASS ComponentLoaderInfo {
return mResolvedURI->GetSpec(*mKey);
}
- MOZ_MUST_USE nsresult GetLocation(nsCString& aLocation) {
+ [[nodiscard]] nsresult GetLocation(nsCString& aLocation) {
nsresult rv = EnsureURI();
NS_ENSURE_SUCCESS(rv, rv);
return mURI->GetSpec(aLocation);