gecko-dev/mobile/android
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
..
app Bug 1215601 - Enable service workers for non-release builds on Fennec similar to desktop; r=bkelly 2015-10-16 14:08:08 -04:00
b2gdroid Bug 1214932 - Remove fragmented-mp4 from media prefs. r=jya 2015-10-15 14:51:28 +13:00
base Bug 1147653 - Review - add exit animation to AnimationSet. r=me 2015-10-16 15:06:48 -07:00
branding Bug 1193580 - Losslessy compress png assets. r=liuche 2015-08-13 10:43:51 -07:00
build/classycle
chrome Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop 2015-10-15 03:45:22 -07:00
components Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
config Bug 1210247 - create a separate tooltool manifest for b2gdroid and add custom NDK-r10e to manifest, r=dustin 2015-10-06 11:16:00 -07:00
extensions
fonts
geckoview_library Bug 1193270 - Use lower-case variables for local variables in geckoview_library's Makefile.in; r=nalexander 2015-09-10 13:49:19 +02:00
gradle Bug 1193206 - Build with Android support library 23.0.1. r=nalexander 2015-10-07 09:13:34 +02:00
installer Merge m-c to inbound, a=merge 2015-09-28 16:31:29 -07:00
javaaddons Bug 1108782 - Part 1: straighten out Java classpaths. r=glandium 2015-08-31 13:35:05 -07:00
locales Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg 2015-10-14 08:02:34 +09:00
modules Bug 1194182 - Change DownloadNotifications.jsm to support newer selectOrAddTab r=margaret 2015-10-14 16:08:21 -04:00
search Bug 1211467 - Use new Fragment.onAttach() API (support library 23). r=mcomella 2015-10-07 09:14:10 +02:00
services Bug 1205817 - Move "Remove Account" out of menu. r=vivek 2015-10-07 13:29:00 +02:00
stumbler Bug 1108782 - Part 2: Explode AAR files at configure time. r=glandium 2015-09-22 10:04:26 -07:00
tests Bug 1208410 - Follow-up: fix bustage from 308e28cb1d94 and add a comment to avoid it in the future. a=bustage, landing on a CLOSED TREE 2015-10-13 20:48:05 -07:00
themes/core Bug 784222 - Make non-input text unselectable for about pages. r=margaret 2015-09-29 00:15:00 +02:00
thirdparty Bug 1198009 - Add a broadcast notification to SwitchBoard after network configuration fetch r=rnewman 2015-09-12 19:26:31 -04:00
.eslintignore Bug 1197874 - Remove MatchstickApp.jsm from the build. r=mfinkle 2015-09-10 20:04:50 +05:30
.eslintrc Bug 1170804 - Set non-final eslintrc for chrome/content. r=margaret 2015-06-25 10:27:38 -07:00
app.mozbuild Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg 2015-10-14 08:02:34 +09:00
build.mk
confvars.sh Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg 2015-10-14 08:02:34 +09:00
debug_sign_tool.py
defs.mk
LICENSE
mach_commands.py Bug 1213418 - Part 1: Use mozregression to download in |mach artifact|. r=me 2015-10-09 17:47:17 -07:00
Makefile.in
moz.build Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg 2015-10-14 08:02:34 +09:00