Commit Graph
39 Commits
Author SHA1 Message Date
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nicholas Nethercote 12fec02dfb Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Andrew McCreight 92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Garvan Keeley 6931cb4262 Bug 1134019 - Extract MLS fallback to its own class for reuse - r=jdm 2015-02-27 19:15:32 -05:00
Garvan Keeley 0470167efc Bug 1131430 - Added telemetry to count CoreLocation vs. MLS results. r=jdm 2015-02-10 10:45:36 -05:00
Chris Peterson d9a7f1fce0 Bug 1130828 - Fix clang -Widiomatic-parentheses and -Wsemicolon-before-method-body warnings. r=smichaud 2015-02-06 00:09:39 -08:00
Garvan Keeley 243cc204a9 Bug 1129696 - Added missing retain/release on NSTimer. r=dougt 2015-02-04 16:00:00 +01:00
Garvan Keeley 003d7e052a Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley 2992e2317c Bug 1121265 - Fallback to MLS Provider, r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-27 08:26:00 +01:00
Carsten "Tomcat" Book cc6e56a225 Backed out changeset 6f507c077b24 (bug 1121265) for OS X static analysis build Bustage on a CLOSED TREE 2015-01-27 09:18:03 +01:00
Carsten "Tomcat" Book b9df7a8a34 Backed out changeset cc42921d3f36 (bug 1121497) 2015-01-27 09:16:54 +01:00
Garvan Keeley 6e01556137 Bug 1121497 - Need to stop location manager before start, r=dougt 2015-01-14 20:02:00 +01:00
Garvan Keeley 3f7c4e7b13 Bug 1121265 - Fallback to MLS Provider. r=dougt
On CoreLocation error, fallback to MLS network provider, which
will report GeoIP, or error.
2015-01-26 10:37:00 +01:00
Birunthan Mohanathas 26bffd0945 Bug 1058101 - Move dom/src/geolocation/ into dom/. r=mccr8 2014-08-30 21:43:45 -07:00
Mike Hommey ea36b79845 Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal 2014-07-23 08:37:51 +09: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
Doug Turner 7e9cd2523f Bug 928217 - Remove IsCoreLocationAvailable() method because it does the wrong thing. [email protected] 2014-03-16 19:54:04 -07:00
Guilherme Gonçalves 83f66fa520 Bug 732923 - CoreLocation provider shouldn't implement nsIGeolocationUpdate. r=jdm 2014-01-08 16:04:21 -05:00
Mike Hommey 97a38484da Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey 06e3b30661 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey 7f7e4faac1 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey 656e86914a Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Ms2ger 933b9cd285 Bug 931459 - Move LOCAL_INCLUDES to moz.build in dom/; r=mshal 2013-11-11 09:04:11 +01:00
Steven Michaud 6f75f427d7 Bug 929686 - Stopgap patch to allow building of CoreLocation stuff with 10.9 SDK. r=spohl 2013-10-24 21:10:10 -05:00
Mike Hommey 8227d7aa95 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe e1887a3861 Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
Doug Turner abca6c033d Bug 928217 - Enable core location geolocation conditionally. r=jdm/smichaud 2013-10-20 17:53:09 -07:00
Ms2ger 94faef7220 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Mike Hommey b207d5baf7 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Brian O'Keefe 3e41167fed Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Ms2ger b831d833fd Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal 2013-08-22 08:56:00 +02:00
Ms2ger 29328591d6 Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Brian O'Keefe 038f7b6d0f Bug 896177 - Remove more config.mk includes; r=gps 2013-07-17 16:07:14 -04:00
Brian O'Keefe 8e950f22ee Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Mike Hommey 86a68579e7 Bug 887483 - Remove some more useless FORCE_STATIC_LIB and leftover comments from previous removal. r=mshal 2013-07-15 18:48:40 +09:00
Guilherme Gonçalves 374e5d63bb Bug 874587 - Fix more case-sensitivity issues. r=smichaud 2013-07-10 13:07:50 -04:00
Guilherme Gonçalves bbb50d2b78 Bug 874587 - Remove unnecessary and misspelled header r=dzbarsky 2013-07-08 11:48:38 -04:00
Masatoshi Kimura ea83420d58 Bug 888323 - Stop including prtime.h in nsrootidl.idl. r=ehsan 2013-07-04 00:56:26 +09:00
Guilherme Gonçalves f46b8088c6 Bug 874587 - Add CoreLocation geolocation provider. r=dougt, r=gps, r=smichaud 2013-07-01 09:43:17 -04:00