summaryrefslogtreecommitdiffstats
path: root/dom/media
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-17 23:48:58 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-17 23:48:58 +0000
commit6be15b96ae4a9f0a73aaea794602201ddf0c4242 (patch)
treea0bfe1e4c95ea2f6a1c0e551b346a5d178ba7dc0 /dom/media
parenta0cdf328774e553eec1df9276604362d7a3679cd (diff)
downloadUXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar
UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.gz
UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.lz
UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.tar.xz
UXP-6be15b96ae4a9f0a73aaea794602201ddf0c4242.zip
Issue #1224 - Remove constant expressions from /dom
This excludes DOMProxy handlers in dom bindings because that's intertwined with codegen and js that needs to be handled together.
Diffstat (limited to 'dom/media')
-rw-r--r--dom/media/MediaCache.cpp2
-rw-r--r--dom/media/platforms/PDMFactory.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/dom/media/MediaCache.cpp b/dom/media/MediaCache.cpp
index 37399f851..64523afcb 100644
--- a/dom/media/MediaCache.cpp
+++ b/dom/media/MediaCache.cpp
@@ -277,7 +277,7 @@ protected:
};
struct BlockOwner {
- constexpr BlockOwner() {}
+ BlockOwner() {}
// The stream that owns this block, or null if the block is free.
MediaCacheStream* mStream = nullptr;
diff --git a/dom/media/platforms/PDMFactory.h b/dom/media/platforms/PDMFactory.h
index 2b43fa1ab..a13c99ac0 100644
--- a/dom/media/platforms/PDMFactory.h
+++ b/dom/media/platforms/PDMFactory.h
@@ -49,10 +49,10 @@ public:
void SetCDMProxy(CDMProxy* aProxy);
#endif
- static constexpr int kYUV400 = 0;
- static constexpr int kYUV420 = 1;
- static constexpr int kYUV422 = 2;
- static constexpr int kYUV444 = 3;
+ static const int kYUV400 = 0;
+ static const int kYUV420 = 1;
+ static const int kYUV422 = 2;
+ static const int kYUV444 = 3;
private:
virtual ~PDMFactory();