summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorBasilisk-Dev <basiliskdev@protonmail.com>2023-10-09 22:13:50 -0400
committerBasilisk-Dev <basiliskdev@protonmail.com>2023-10-09 22:13:50 -0400
commit0ea78ba5fad57abc0f3669dfa9badb9337d49bfa (patch)
tree9f5d911d338d6380716e9c6d9a7ba609d3b42936 /dom
parent1b2c1d8eac22fa1ab1c4fff72f2de9aa025fccff (diff)
downloaduxp-0ea78ba5fad57abc0f3669dfa9badb9337d49bfa.tar.gz
Issue #2332 - Fix CamerasChild helper to return by value instead of out-of-scope reference
Backport of https://bugzilla.mozilla.org/show_bug.cgi?id=1318132
Diffstat (limited to 'dom')
-rw-r--r--dom/media/systemservices/CamerasChild.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/systemservices/CamerasChild.cpp b/dom/media/systemservices/CamerasChild.cpp
index abbcc9e223..341c6e17a7 100644
--- a/dom/media/systemservices/CamerasChild.cpp
+++ b/dom/media/systemservices/CamerasChild.cpp
@@ -223,7 +223,7 @@ public:
Dispatch();
}
- const T& ReturnValue() const {
+ T ReturnValue() const {
if (mSuccess) {
return mSuccessValue;
} else {