File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ using namespace mozilla;
18
18
using namespace mozilla ::dom;
19
19
20
20
FormData::FormData (nsISupports* aOwner)
21
- : HTMLFormSubmission(UTF_8_ENCODING, nullptr )
21
+ : HTMLFormSubmission(WrapNotNull( UTF_8_ENCODING) , nullptr)
22
22
, mOwner(aOwner)
23
23
{
24
24
}
@@ -402,7 +402,7 @@ NS_IMETHODIMP
402
402
FormData::GetSendInfo (nsIInputStream** aBody, uint64_t * aContentLength,
403
403
nsACString& aContentTypeWithCharset, nsACString& aCharset)
404
404
{
405
- FSMultipartFormData fs (UTF_8_ENCODING, nullptr );
405
+ FSMultipartFormData fs (WrapNotNull ( UTF_8_ENCODING) , nullptr );
406
406
407
407
for (uint32_t i = 0 ; i < mFormData .Length (); ++i) {
408
408
if (mFormData [i].wasNullBlob ) {
Original file line number Diff line number Diff line change @@ -889,7 +889,7 @@ GetSubmitEncoding(nsGenericHTMLElement* aForm)
889
889
if (doc) {
890
890
return Encoding::ForName (doc->GetDocumentCharacterSet ());
891
891
}
892
- return UTF_8_ENCODING;
892
+ return WrapNotNull ( UTF_8_ENCODING) ;
893
893
}
894
894
895
895
void
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ class Encoder;
27
27
}; // namespace mozilla
28
28
29
29
#define ENCODING_RS_ENCODING mozilla::Encoding
30
- #define ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR mozilla::NotNull<const mozilla::Encoding*>
31
30
#define ENCODING_RS_ENCODER mozilla::Encoder
32
31
#define ENCODING_RS_DECODER mozilla::Decoder
33
32
Original file line number Diff line number Diff line change 4
4
#include " gtest/gtest.h"
5
5
6
6
#include " mozilla/Encoding.h"
7
- #include < type_traits>
8
7
9
8
#define ENCODING_TEST (name ) TEST(EncodingTest, name)
10
9
11
10
using namespace mozilla ;
12
11
13
- static_assert (std::is_trivially_copyable<NotNull<const Encoding*>>::value,
14
- " NotNull<const Encoding*> must be trivially copyable." );
15
- static_assert (std::is_standard_layout<NotNull<const Encoding*>>::value,
16
- " NotNull<const Encoding*> must be a standard layout type." );
17
-
18
12
// These tests mainly test that the C++ interface seems to
19
13
// reach the Rust code. More thorough testing of the back
20
14
// end is done in Rust.
You can’t perform that action at this time.
0 commit comments