Brian Smith
|
669c77bb7e
|
Bug 1010634, Part 2: Fix compiler warnings in MFBT and XPCOM, r=ehsan
--HG--
extra : rebase_source : 8839297479ce2ade7a7e6cb5099178e799a0e516
|
2014-05-29 20:18:29 -07:00 |
|
Birunthan Mohanathas
|
4a7f8c92a2
|
Bug 995730 - Convert xpcom/string/ to Gecko style. r=froydnj
--HG--
extra : rebase_source : ca62984a1bad49505dd8fd480dc3d525c85cc210
|
2014-05-27 10:15:35 +03:00 |
|
Ehsan Akhgari
|
a9b1426983
|
Bug 1015430 - Fix more XPCOM constructors to clarify whether they should be explicit; r=froydnj
|
2014-05-25 21:16:01 -04:00 |
|
Ehsan Akhgari
|
897e351e52
|
Bug 1013664 - Fix bad implicit conversion constructors in XPCOM; r=froydnj
--HG--
extra : rebase_source : e3260a536292175cb1ad23a53dfe9e3f4bb8ff10
|
2014-05-21 21:33:28 -04:00 |
|
Birunthan Mohanathas
|
3bdf6e645e
|
Bug 995730 - Change xpcom/string/ to use 2 space indentation
This also removes trailing whitespace in reindented files.
|
2014-05-05 20:30:46 +03:00 |
|
Nathan Froyd
|
07e80e3605
|
Bug 940329: fix spammy implicit type-conversion warnings in nsTSubstring.h r=ehsan
|
2014-04-27 00:29:25 -04:00 |
|
Alessio Placitelli
|
6a7b399beb
|
Bug 950076 - Add a fallible form of nsAString::Append and Replace and use it in nsTextFragment::AppendTo. r=bsmedberg, r=jst
|
2014-03-19 13:05:02 -04:00 |
|
Ryan VanderMeulen
|
c5975cfb88
|
Backed out changesets a17ee88f1fe7, 6e3aee4a9650, 07e5ed676919 (bug 950076) for Werror bustage.
|
2014-03-19 14:00:10 -04:00 |
|
Alessio Placitelli
|
208513304c
|
Bug 950076 - Add a fallible form of nsAString::Append and Replace and use it in nsTextFragment::AppendTo. r=bsmedberg, r=jst
|
2014-03-19 13:05:02 -04:00 |
|
Nathan Froyd
|
2d0c5a6725
|
Bug 984450 - delete unused, deprecated Recycle definitions in nsString.h; r=bsmedberg
|
2014-03-17 12:27:29 -04:00 |
|
Nathan Froyd
|
e12481c9a7
|
Bug 984443 - get rid of #ifndef $OTHER_HEADER bits from xpcom/ as relics of a bygone era; r=ehsan
|
2014-03-17 12:20:47 -04:00 |
|
Kyle Huey
|
df0e7828eb
|
Bug 981150: Use nsTArrayForwardDeclare.h more. r=ehsan
|
2014-03-15 12:00:17 -07:00 |
|
Simon Montagu
|
4f04d50a82
|
Add ReplaceChars with a char16_t array. Bug 979556, r=bsmedberg
|
2014-03-05 21:04:36 +02:00 |
|
James Kitchener
|
faf522b628
|
Bug 328755 - Assigning a zero-length string should not alloc a buffer. r=bsmedberg
|
2014-02-03 22:57:56 +10:30 |
|
Neil Rashbrook
|
581a903d05
|
Bug 966911 Part 4: Recreate the underlying nsAString when an an external string is passed back to C++ r=bholley
|
2014-02-14 19:44:55 +00:00 |
|
Neil Rashbrook
|
42055a8e06
|
Bug 966911 Part 1: Improve DOMString and AString conversion code paths r=bholley
|
2014-02-12 21:22:07 +00:00 |
|
Peiyong Lin
|
7ab1deb19e
|
Bug 613472 - Use the fallible allocator and propagate errors in AppendASCIItoUTF16. r=bsmedberg
|
2014-02-11 09:22:45 -05:00 |
|
Jacek Caban
|
5d29b8239e
|
Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
--HG--
extra : rebase_source : 2f81dd18df59e0498a577c437954c5b1f52f8e28
|
2014-02-06 17:42:58 +01:00 |
|
Nathan Froyd
|
50339d72dd
|
Bug 965783 - part 2 - remove {Min,Max}Int; r=ehsan
|
2014-01-30 09:56:12 -05:00 |
|
Neil Rashbrook
|
34dcf4918b
|
Bug 514173 Make literal string buffers shareable r=dbaron,ehsan,bholley
|
2014-01-08 20:51:38 +00:00 |
|
Alessio Placitelli
|
7fe5243d6e
|
Bug 950762 - Add fallible AppendUTF16toUTF8 and make DOMParser::ParseFromString fallible. r=jst, r=bsmedberg
|
2014-01-07 10:18:30 -05:00 |
|
Carsten "Tomcat" Book
|
f98dd49b0f
|
Backed out changeset 06f381426af1 (bug 944905) for windows bustage on a CLOSED TREE
|
2014-01-07 15:18:43 +01:00 |
|
Jacek Caban
|
bfec77ac34
|
Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
|
2014-01-07 14:54:52 +01:00 |
|
Ehsan Akhgari
|
ebd358dfd7
|
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-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 PRUnichar char16_t
|
2014-01-04 10:02:17 -05:00 |
|
Henri Sivonen
|
624dc18f8f
|
Bug 951110 - Make AssertValidDepedentString() more informative. r=bsmedberg.
|
2013-12-19 10:15:34 +02:00 |
|
Jacek Caban
|
db001e45e0
|
Bug 928351 - Char16.h and xpcom/strings/public parts r=ehsan,Waldo
|
2013-11-27 14:40:54 +01:00 |
|
Benjamin Smedberg
|
041396b09d
|
Bug 938794 - Annotate OOM size as infallible string or data structures abort, r=froydnj
--HG--
extra : rebase_source : f84278dfbba92c6d75458b525a559b6f8598500f
|
2013-11-25 15:06:17 -05:00 |
|
Mike Hommey
|
bb6779efe3
|
Bug 939044 - Remove most definitions of MODULE. r=mshal
|
2013-11-19 11:47:39 +09:00 |
|
Nathan Froyd
|
cbbe215e49
|
Bug 608915 - part 2 - use MFBT's double-conversion code in nsString::AppendFloat; r=bz,gps
|
2013-09-24 13:36:55 -04:00 |
|
Matt Brubeck
|
041b460c69
|
Bug 935376 - Back out 2e6063aa9b77 (bug 328755) on suspicion of causing a crash in ntdll
|
2013-11-05 21:12:56 -08:00 |
|
James Kitchener
|
5b0db92cbb
|
Bug 328755 - Assigning a zero-length string should not alloc a buffer. r=bsmedberg
|
2013-11-04 14:22:37 -05:00 |
|
Mike Hommey
|
61124c1afc
|
Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps
|
2013-10-24 08:05:43 +09:00 |
|
Daniel Holbert
|
d0909dfb05
|
Bug 925066: Remove unused "#include nsDebug.h" from nsAlgorithm.h. r=jst
|
2013-10-09 17:13:49 -07:00 |
|
Daniel Holbert
|
5f346edec1
|
Bug 925129: Remove VC9-and-earlier chunk from nsAlgorithm.h, since we don't support building with VC9 and earlier. r=ehsan
|
2013-10-09 17:03:34 -07:00 |
|
Ehsan Akhgari
|
3190f3e1a4
|
Bug 918923 - Part 1: Fix the include-what-you-use pragmas in the string headers; r=bsmedberg
|
2013-09-23 13:23:56 -04:00 |
|
Joshua Cranmer
|
b511ee58c5
|
Bug 904985 - Use Char16.h in favor of NS_LL, Part 3: kill NS_LL. r=dbaron
--HG--
extra : rebase_source : bc105a8cbb87cc9b6b2db0734d9841fe599e794b
|
2013-09-17 22:43:21 -05:00 |
|
Joshua Cranmer
|
821f9d62df
|
Bug 904985, part 2: Use char16_t for NS_LITERAL_STRING, r=glandium, dbaron.
--HG--
extra : rebase_source : b4c9def93d907724fb4a1bc3f6279db87a11fb1f
|
2013-09-17 22:43:12 -05:00 |
|
Boris Zbarsky
|
3ed8ed52d8
|
Bug 910795 part 1. Add a way to Rebind() an nsString to be a dependent string. r=bsmedberg
|
2013-09-04 16:43:12 -04:00 |
|
Nathan Froyd
|
3be905a68a
|
Bug 884281 - use mozilla::Atomic in xpcom/; r=bsmedberg,jlebar
|
2013-08-22 11:14:42 -04:00 |
|
Ms2ger
|
585bec8d38
|
Bug 903844 - Add/update include-what-you-use annotations for various files; r=ehsan+khuey
|
2013-08-22 08:31:21 +02:00 |
|
Nathan Froyd
|
f74603ff5e
|
Bug 907728 - use function overloading instead of defaulted arguments for nsTSubstring::Assign; r=jlebar
|
2013-08-20 16:32:54 -04:00 |
|
Ehsan Akhgari
|
5ee21d6d3f
|
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
|
2013-07-18 13:59:53 -04:00 |
|
Gregory Szorc
|
5c25cc9036
|
No Bug - Removing empty Makefile.in files; r=me
|
2013-07-18 09:09:28 -07:00 |
|
Mike Hommey
|
784edc021e
|
Bug 892401 - Remove NEW_H. r=ted
|
2013-07-12 09:16:41 +09:00 |
|
Joey Armstrong
|
9d2e7154d2
|
bug 883350: move SDK_HEADERS to mozbuild (file batch #1) r=mshal
|
2013-07-01 17:24:53 -04:00 |
|
Catalin Iacob
|
4f03e5bb1a
|
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
|
2013-06-23 14:03:39 +02:00 |
|
Masatoshi Kimura
|
8d08a9c8e1
|
Bug 883436 - Remove prtypes.h #include from nsString.h. r=ehsan
|
2013-06-18 07:21:06 +09:00 |
|
Aryeh Gregor
|
d183f6f9bc
|
Bug 859817 - Make nsStringBuffer::Alloc return already_AddRefed; r=bz
|
2013-04-22 14:13:22 +03:00 |
|
Jeff Walden
|
d349e7c9e0
|
Bug 866988 - Remove the HAVE_CPP_PARTIAL_SPECIALIZATION autoconf define, and the test for template specialization working at all. Any compiler not supporting either of these is so incredibly doomed it's not worth the pain of testing them. Plus we use both features liberally without testing these defines first, so they're basically pointless. r=ted
|
2013-04-13 19:04:38 -07:00 |
|
Mike Shal
|
77cdb6567d
|
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
|
2013-04-16 15:24:43 -04:00 |
|