Nicholas Nethercote
62b6b0fce6
Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
...
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:
nsAutoCString spec;
uri->GetSpec(spec);
printf("uri: %s", spec.get());
to be changed to this:
printf("uri: %s", uri->GetSpecOrDefault().get());
This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.
I will fold this into part 1 before landing.
2016-08-26 16:02:31 +10:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Nicholas Nethercote
eb4f9a274e
Bug 1293603 (part 3) - Remove erroneous NS_METHOD uses in widget/. r=erahm.
...
All these occurrences are for methods declared with NS_IMETHOD, and so they
should be NS_IMETHODIMP instead of NS_METHOD.
2016-08-09 14:03:13 +10:00
Thomas Zimmermann
ba133ac07a
Bug 1265386: Fix white-space errors in widget/, r=nfroyd
...
MozReview-Commit-ID: ATXI7dYFHmA
2016-07-22 10:56:13 +02:00
Carsten "Tomcat" Book
49865a8de6
Backed out changeset 2bea1e1e403d (bug 1265386) for bustage on a CLOSED TREE
2016-07-21 13:59:02 +02:00
Thomas Zimmermann
4fa3fb2bb5
Bug 1265386: Fix white-space errors in widget/, r=nfroyd
...
MozReview-Commit-ID: ATXI7dYFHmA
2016-07-21 13:29:30 +02:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Jonathan Watt
80a104b4e7
Bug 1265953, part 2 - Convert much of the rest of the widget code from nsAutoPtr to UniquePtr. r=mstange
2016-04-19 21:51:25 +01:00
Christoph Kerschbaumer
22059fcb29
Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking)
2015-11-02 17:31:08 -08:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Michael Layzell
9fcef05380
Bug 1180993 - Part 3: Correct use sites of functions which return already_AddRefed. r=ehsan
2015-07-10 08:36:00 -04:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Christoph Kerschbaumer
55b9b6bb4e
Bug 1038756: Callsites creating a channel in /widget/gtk/ (r=roc)
2014-09-21 09:42:14 -07:00
Ehsan Akhgari
a1ac793e80
Bug 1061253 - Fix more bad implicit constructors in widget; r=roc
2014-09-02 09:46:06 -04:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Trevor Saunders
b4ae5fdd96
bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj
2013-12-12 20:50:01 -05:00
Birunthan Mohanathas
881bef1868
Bug 784739 - Switch from NULL to nullptr in widget/gtk/; r=ehsan
2013-10-08 14:47:37 -04:00
Martin Stransky
26724abdb6
Bug 917270 - Rename widget/gtk2 to widget/gtk. r=karlt
2013-09-23 09:21:57 -04:00