Nika Layzell
c6aa5a36db
Bug 1377351 - Part 5: Add a workaround for gcc 4.9 compiler bug, r=froydnj
...
MozReview-Commit-ID: CHywpZ4fvXf
2017-10-18 13:00:22 -04:00
Tom Ritter
cdd7039c6a
Bug 1402328 Use a Dummy template parameter to avoid fully specializing structs inside of template classes r=froydnj
...
Full specialization is allowed in MSVC, but not in gcc.
MozReview-Commit-ID: 9QI6YWc5Rvr
2017-09-22 10:26:26 -05:00
Eric Rahm
eca59d1f0e
Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
...
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.
Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.
2017-08-14 14:22:50 -07:00
L. David Baron
16ae1c6c20
Bug 1381080 patch 7 - Mark nsLiteral[C]String constructor as constexpr. r=erahm
...
MozReview-Commit-ID: 5ASqQAGBqq
2017-07-20 15:47:00 -07:00
L. David Baron
636be5153f
Bug 1381080 patch 1 - Add ClassFlags::NULL_TERMINATED to strings that require null-termination. r=erahm
...
This is needed for patch 4.
MozReview-Commit-ID: 5ikQFIL9O0i
2017-07-20 15:46:58 -07:00
L. David Baron
202e05578a
Bug 1343715 - Split nsTSubstring::mFlags into separate variables for class and data flags. r=dmajor
...
MozReview-Commit-ID: JW1p5BxpHKA
2017-07-10 12:23:10 -07:00
David Major
cb5ae7a6d9
Bug 1344629 - Part 8: Make nsTLiteralString inherit from nsTStringRepr. r=dbaron
...
This is the patch that all the others have been leading up to: by inheriting from nsTStringRepr, nsTLiteralString loses its destructor (previously suppplied by nsTSubstring).
I included an AsString() cast as an escape hatch for a few pieces of code that couldn't easily accommodate the new hierarchy, but I'm pretty pleased with how little it was necessary.
MozReview-Commit-ID: 2zGkaw1sMUp
2017-03-14 15:26:36 +13:00
David Major
30d7798117
Bug 1344629 - Part 6.5: Allow get() on nsLiteralStrings, excluding temporaries. r=dbaron
...
This prevents the antipattern found in bug 1341513.
MozReview-Commit-ID: JhxgC7aQDUA
2017-03-14 15:26:36 +13:00
Iris Hsiao
22d2818760
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
4840f0d2a7
Bug 1344629 - Part 8: Make nsTLiteralString inherit from nsTStringRepr. r=dbaron
...
This is the patch that all the others have been leading up to: by inheriting from nsTStringRepr, nsTLiteralString loses its destructor (previously suppplied by nsTSubstring).
I included an AsString() cast as an escape hatch for a few pieces of code that couldn't easily accommodate the new hierarchy, but I'm pretty pleased with how little it was necessary.
MozReview-Commit-ID: 2zGkaw1sMUp
2017-03-14 15:26:36 +13:00
David Major
fe49696620
Bug 1344629 - Part 6.5: Allow get() on nsLiteralStrings, excluding temporaries. r=dbaron
...
This prevents the antipattern found in bug 1341513.
MozReview-Commit-ID: JhxgC7aQDUA
2017-03-14 15:26:36 +13:00
Ehsan Akhgari
0f6413366a
Bug 1188203 - Fix more constructors in XPCOM; r=froydnj
2015-07-28 12:24:37 -04:00
Ehsan Akhgari
a7f747ec15
Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Birunthan Mohanathas
2a49da1efa
Bug 1028559 - Flatten xpcom/string/{public,src}/ directories. r=dbaron
2014-06-25 15:08:54 -07:00
Wes Kocher
777add5c77
Backed out 6 changesets (bug 1028559, bug 1028565) for android mochitest bustage on a CLOSED TREE
...
Backed out changeset fdd74c065e5d (bug 1028565)
Backed out changeset 5e9777d38052 (bug 1028565)
Backed out changeset 3510bcdba3fc (bug 1028565)
Backed out changeset 62ad3254903e (bug 1028565)
Backed out changeset e7557f70acfe (bug 1028565)
Backed out changeset 5b1b527abe47 (bug 1028559)
2014-06-24 18:32:55 -07:00
Birunthan Mohanathas
91694f185a
Bug 1028559 - Flatten xpcom/string/{public,src}/ directories. r=dbaron
2014-06-21 08:56:57 -07:00