mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1188205 - Fix more constructors in netwerk; r=mcmanus
This commit is contained in:
parent
03f8195321
commit
b074e45de4
@ -195,7 +195,7 @@ public:
|
||||
: mBuf(aBuf), mLength(aLength) {}
|
||||
|
||||
template <size_t Size2>
|
||||
Buffer(const Buffer<Size2>& aBuf) : mBuf(aBuf.mBuf), mLength(aBuf.mLength) {
|
||||
MOZ_IMPLICIT Buffer(const Buffer<Size2>& aBuf) : mBuf(aBuf.mBuf), mLength(aBuf.mLength) {
|
||||
static_assert(Size2 > Size, "Cannot cast buffer");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user