Commit Graph

945 Commits

Author SHA1 Message Date
Neil Rashbrook
63c77e3cdc Bug 499027 Copying an empty string to a new string allocates a buffer r=dbaron sr=jst 2009-08-14 12:03:05 +01:00
Jeff Walden
d108a897cb Remove stray semicolon that Linux gcc hates, r=red 2009-08-06 12:48:58 -07:00
Jeff Walden
ea9f3fd2a5 Bug 428465 - nsTArray should refuse to compile with T=nsAutoString (or work correctly). r=bsmedberg 2009-08-03 21:13:28 -07:00
Neil Rashbrook
b15be8f4bb Bug 504660 Make sEmptyBuffer non-const so EnsureMutable can safely use it for an empty string r=bsmedberg 2009-07-20 21:04:44 +01:00
L. David Baron
782ed45fa9 Use char16_t when available, and when it is, don't test for -fshort-wchar. (Bug 502298) r=bsmedberg 2009-07-20 07:04:41 -04:00
Bob Clary
b7b7415c27 bug 395651 - crash test by Jesse Ruderman. 2009-04-24 10:08:22 -07:00
Bob Clary
541dfb2d14 bug 394275 - crash test by Jesse Ruderman. 2009-04-24 10:08:22 -07:00
Neil Rashbrook
c111019db9 Bug 479057 Concatenating empty strings can result in bogus copying r=bsmedberg 2009-03-04 09:50:22 +00:00
Dão Gottwald
4684440800 Backed out changeset 2df29cb1ed93 2009-02-07 15:07:36 +01:00
Tyler Downer
82b88a63ae Bug 471930 - Strip User Docs from XPCOM. r=bsmedberg 2009-02-07 13:54:47 +01:00
Daniel Holbert
37cf5be52d Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
Fred Jendrzejewski
cbc6639bab Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg 2009-01-22 17:15:34 +13:00
Benjamin Smedberg
d6e071646d Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron 2009-01-15 13:44:46 -05:00
Benjamin Smedberg
e66978d628 Bug 469072 - Annotations in XPCOM, and a couple related code fixups, to make outparams spit out useful warnings, r=bent 2008-12-11 15:13:52 -05:00
Daniel Holbert
8992d625af Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe 2008-10-01 23:49:45 -07:00
Jonas Sicking
c8e37fb5f2 Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst 2008-09-30 17:50:42 -07:00
Benjamin Smedberg
0b842e5583 Remove the v1 string ABI compatibility hacks. Replace references of nsTAString_CharT with nsTSubstring_CharT which is the new base class. r=dbaron 2008-09-19 11:07:22 -04:00
Serge Gautherie
299fc5125f Bug 410708 – Compiler warning in nsUTF8Utils.h
(Av2) Use char notation
2008-08-09 04:36:52 +02:00
Boris Zbarsky
1090af6c0c Bug 265534. Take some string constructors out of line to reduce codesize. r=bsmedberg, sr=dbaron 2008-08-18 11:40:49 -04:00
Marco Pesenti Gritti
f15fdc0ee5 Make sure that nsString and nsString_external are the same size. b=430581 r=benjamin 2008-07-30 08:06:54 +02:00
Benjamin Smedberg
9b28906a05 Bug 442714 - Mark NS_STACK_CLASS on nsAutoString, r=dbaron 2008-06-30 14:46:47 -04:00
Jeff Walden
614a6b1839 Bug 421576 - Unpaired surrogate handled wrongly (Acid3 #68). acid3++ r=dbaron 2008-06-02 21:29:00 -04:00
85156f0462 Fix -Wconversion warnings that prevent compiling netwerk/cookie/src/ (which makes warnings fatal) with gcc 4.3 on x86_64. b=409384 r=bsmedberg a=beltzner 2008-03-06 15:03:50 -08:00
92072ade1b Bug 409384 - Firefox 3.0b2 fauks to compile with gcc 4.3, r=dwitte+dbaron a=damons 2008-02-26 14:44:41 -08:00
a955f4a276 update copy_string() to the single-fragment string world, and optimize write() to not return a value. b=282083, r+sr=jst, a=schrep 2008-01-03 16:07:06 -08:00
e58600c985 Bug 396052 - Firefox fails to start when run from a directory with non-native characters, r=luser sr=neil 2007-12-31 07:15:43 -08:00
cb7c4528ba Fixing bug 395651. Make our UTF-8 and UTF-16 comparison code etc more robust when dealing with invalid UTF-16 data. r+sr=jonas@sicking.cc, a=jst@mozilla.org/jonas@sicking.cc 2007-09-14 16:09:49 -07:00
e757b205b8 Fixing bug 394275. Fix problem with UTF16 to UTF8 character conversions when dealing with broken UTF16 characters. r+sr=jonas@sicking.cc 2007-09-07 13:28:27 -07:00
8a277235d9 Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change 2007-09-04 23:41:35 -07:00
ceb385fd6f Bug 385250 - "IsVoid and IsTerminated may return something other than PR_TRUE and PR_FALSE". r=dbaron, sr=jag, a=bz. 2007-08-19 20:09:30 -07:00
7bfd283d53 Bug 380783 - nsStringAPI.h: no equivalent of IsVoid (tell if string is null), patch by Mook <mook.moz+mozbz@gmail.com>, r=bsmedberg/dbaron, sr=dbaron, a1.9=bz 2007-08-17 20:48:16 -07:00
0ed0b88703 make nsStringContainer_base smaller bug 390849, r+sr+a=bsmedberg 2007-08-07 16:37:44 -07:00
2f77eb0145 Bug 387132 followup - build the reftest-fast tool correctly with libxul, r=vlad a=only functional change is NPOB 2007-08-06 13:13:19 -07:00
22cd77f01a Bug 339069 - Optimization for RFindInReadable
p=Alfred Kayser <alfredkayser@nl.ibm.com>
r=darin, sr=dbaron
2007-07-23 18:30:19 -07:00
8be89d4076 Fixing bug 377360. Fix atom table crash due to invalid UTF data in atoms. r=jonas@sicking.cc, sr=peterv@propagandism.org 2007-07-11 13:46:43 -07:00
36dfc1e1c9 Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
98de634631 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
c2654f2ce0 Fix bug 383426 (OOM crash). r=peterv, sr=roc. 2007-07-02 23:03:11 -07:00
410163cbfe Bug 379565 - "Figure out a way to prevent people from using static ns(C)String instances". r=bsmedberg. 2007-05-16 13:10:18 -07:00
hg@mozilla.com
2ca566cd74 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00
timeless@mozdev.org
14a0d0b23e Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
updating comment
2006-12-24 12:27:45 +00:00
timeless@mozdev.org
dd0ecad21f Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
2006-12-21 07:13:58 +00:00
timeless@mozdev.org
1b07f1e039 Bug 363390 IS_LOW_SURROGATE conflicts with winnls.h
r=darin
2006-12-21 07:03:23 +00:00
mozilla@weilbacher.org
00d18922e3 Fix XPCOM build break on OS/2, see bug 345517. p=abwillis1, r=benjamin 2006-12-07 22:54:18 +00:00
benjamin@smedbergs.us
0bd0cac89f From bug 345517 - fix adoptcount logging for the frozen string API, r=darin 2006-11-10 20:05:04 +00:00
smontagu@smontagu.org
66f46a203b Prevent the IS_*_SURROGATE macros from identifying code points in supplementary planes as surrogates. Bug 347867, r+sr=darin 2006-08-10 10:12:37 +00:00
alfred.peng@sun.com
ce2138aaa9 Bug 347170 nsAString.h and nsSubstring.h should use && instead of &
jst: review+
darin: superreview+
2006-08-04 08:36:36 +00:00
darin@meer.net
84692d0eca fixing win32 build bustage 2006-06-28 23:49:57 +00:00
darin@meer.net
94f2d8040c fixing win32 bustage 2006-06-28 22:54:40 +00:00
darin@meer.net
160a444055 fixes bug 335957 "Provide method to resize-and-get mutable string data" r=dbaron 2006-06-28 22:11:39 +00:00