gecko-dev/toolkit/xre
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
..
test Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium. 2015-08-27 20:44:53 -07:00
CreateAppData.cpp Bug 1024110 - Change Aurora's default profile behavior to use channel-specific profiles. r=bsmedberg f=gavin,markh 2014-09-23 21:49:03 +03:00
EventTracer.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
EventTracer.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
MacApplicationDelegate.h
MacApplicationDelegate.mm Bug 1117635 - Declare that MacApplicationDelegate implements the NSApplicationDelegate protocol. r=mstange 2015-01-07 18:33:32 -08:00
MacAutoreleasePool.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
MacAutoreleasePool.mm
MacLaunchHelper.h
MacLaunchHelper.mm Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
MacQuirks.h
Makefile.in Bug 1192068 - Use long hg revision for sourcestamp in mozharness; r=gps,jlund 2015-08-06 15:39:38 -04:00
MozMeegoAppService.h
ProfileReset.cpp Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
ProfileReset.h Bug 1156034 - Add some missing error handling to ProfileResetCleanupAsyncTask; r=bsmedberg 2015-04-20 13:10:32 -04:00
UIKitDirProvider.h bug 1174704 - Implement GetUserDataDirectoryHome for iOS. r=froydnj 2015-03-18 22:23:28 -04:00
UIKitDirProvider.mm bug 1174704 - Implement GetUserDataDirectoryHome for iOS. r=froydnj 2015-03-18 22:23:28 -04:00
WindowsCrtPatch.h Bug 1138070 - Don't use GetModuleHandleA on RtlImageNtHeader. r=dmajor 2015-03-04 11:09:04 +13:00
glxtest.cpp Bug 1124862 Fix glxtest.cpp fail-on-warning errors for ignored return values. r=bjacob 2015-01-25 16:50:13 -05:00
make-platformini.py
moz.build Bug 1210611 - Globally define MOZILLA_OFFICIAL. r=glandium 2015-10-02 15:18:04 -07:00
nsAndroidStartup.cpp Bug 1192082 - Iniialize/deinitialize JNI in nsAppShell; r=snorp 2015-08-13 00:53:40 -04:00
nsAppRunner.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsAppRunner.h Bug 1171518 - cleanup maintenance service logging. r=bbondy 2015-07-14 12:08:45 -07:00
nsCommandLineServiceMac.cpp
nsCommandLineServiceMac.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsConsoleWriter.cpp Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd 2015-05-01 09:40:30 +09:00
nsEmbedFunctions.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsGDKErrorHandler.cpp
nsGDKErrorHandler.h
nsINativeAppSupport.idl
nsIWinAppHelper.idl
nsNativeAppSupportBase.cpp
nsNativeAppSupportBase.h
nsNativeAppSupportCocoa.mm Bug 1100530 - Clean up OS X version constants. f=jgilbert, r=mstange 2014-11-28 17:28:59 -05:00
nsNativeAppSupportDefault.cpp
nsNativeAppSupportQt.cpp
nsNativeAppSupportQt.h
nsNativeAppSupportUnix.cpp Bug 1138295 - Don't define unused types and static variable when building with Gtk+3. r=karlt 2015-03-04 14:39:37 +09:00
nsNativeAppSupportWin.cpp Bug 1208622 - Separate API entry points. r=bz 2015-09-30 16:31:46 -07:00
nsNativeAppSupportWin.h
nsQAppInstance.cpp
nsQAppInstance.h
nsSigHandlers.cpp Bug 1181411 - Test some expected aborts in PLDHashTable. r=glandium. 2015-07-12 18:50:21 -07:00
nsSigHandlers.h
nsUpdateDriver.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsUpdateDriver.h Bug 1152997 - Cleanup app update build to exclude android. r=glandium, r=mossop 2015-04-14 17:00:02 -07:00
nsWindowsRestart.cpp
nsWindowsWMain.cpp Bug 1160148: Also block AVX2 in Win7RTM, and move the code to mozglue. r=froydnj 2015-05-11 16:12:45 -04:00
nsX11ErrorHandler.cpp
nsX11ErrorHandler.h
nsXREDirProvider.cpp Bug 1207287: Move the app-shipped system add-ons somewhere where they will be included in up date MARs. r=froydnj r=rhelmer 2015-09-24 16:03:01 -07:00
nsXREDirProvider.h Bug 1144127 - Remove support for distribution/bundles except in B2G, r=Mossop 2015-05-05 15:15:27 -04:00