gecko-dev/netwerk/wifi
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
..
tests
moz.build Bug 1204919 - Build osx_corewlan.mm with -Wno-error=objc-method-access to avoid bustage on some machines in warnings-on-errors builds. r=glandium. 2015-09-16 09:41:52 +10:00
nsIWifiAccessPoint.idl
nsIWifiListener.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsIWifiMonitor.idl Bug 919296 - Minimize the #includes in netwerk/ IDL files; r=mcmanus 2013-09-22 23:35:05 -04:00
nsWifiAccessPoint.cpp Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj 2015-06-03 15:25:57 -07:00
nsWifiAccessPoint.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
nsWifiMonitor.cpp Bug 1162336 - Part 1: Remove instances of #ifdef PR_LOGGING in netwerk. r=froydnj 2015-05-07 12:52:44 -07:00
nsWifiMonitor.h Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj 2015-06-03 15:25:57 -07:00
nsWifiMonitorGonk.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsWifiScannerDBus.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsWifiScannerDBus.h Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj 2015-03-21 12:28:04 -04:00
nsWifiScannerFreeBSD.cpp Bug 1103858 - Enable FreeBSD wifi scanner on DragonFly. r=ted, r=jdm 2014-11-24 00:10:00 -05:00
nsWifiScannerMac.cpp Bug 1018379 - Use wifi scanner as the sole the heartbeat that drives location updates, shorten the wifi scanner wait to 5s to ensure this (also stop and restart the scanner on WifiGeoPositionProvider.startup() to ensure this). r=jdm 2014-06-08 22:52:53 -07:00
nsWifiScannerSolaris.cpp Bug 1018379 - Use wifi scanner as the sole the heartbeat that drives location updates, shorten the wifi scanner wait to 5s to ensure this (also stop and restart the scanner on WifiGeoPositionProvider.startup() to ensure this). r=jdm 2014-06-08 22:52:53 -07:00
nsWifiScannerWin.cpp Bug 1157400 - Port Chromium WinXP wifi scanner to gecko. r=mcmanus 2015-06-03 08:26:47 -04:00
osx_corewlan.mm Bug 1142860 - Remove unused exception parameter in osx_corewlan.mm. r=mstange 2015-03-04 21:36:07 -08:00
osx_wifi.h
win_wifiScanner.cpp Another fixup for non-unified bustage on windows after bug 985970. r=me 2014-08-02 12:46:24 +09:00
win_wifiScanner.h Bug 1212056 - Add virtual dtor to WindowsWifiScannerInterface. r=jdm 2015-10-06 22:35:09 +03:00
win_wlanLibrary.cpp Bug 985970. On Windows, initiate a scan of nearby wireless networks before collecting AP data. r=jimm 2014-08-01 12:10:48 -07:00
win_wlanLibrary.h Bug 985970. On Windows, initiate a scan of nearby wireless networks before collecting AP data. r=jimm 2014-08-01 12:10:48 -07:00
win_xp_wifiScanner.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
win_xp_wifiScanner.h Bug 1157400 - Part1: port chromium XP wifi scanning code. r=mcmanus 2015-06-03 08:26:47 -04:00