Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
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
Ben Tian 5e46603952 Bug 1195685 - Transform macro |BT_APPEND_NAMED_VALUE| into function, r=shuang 2015-09-09 10:59:36 +08:00
Ben Tian 8ddbe69e4f Bug 1193379 - Move backend-neutral files into dom/bluetooth/common. r=joliu
--HG--
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/common/BluetoothCommon.h
rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/common/BluetoothHfpManagerBase.h
rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/common/BluetoothHidManager.cpp
rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/common/BluetoothHidManager.h
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/common/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/common/BluetoothInterface.h
rename : dom/bluetooth/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/BluetoothPbapRequestHandle.cpp
rename : dom/bluetooth/BluetoothPbapRequestHandle.h => dom/bluetooth/common/BluetoothPbapRequestHandle.h
rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/common/BluetoothProfileManagerBase.h
rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/common/BluetoothRilListener.cpp
rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/common/BluetoothRilListener.h
rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/common/BluetoothSocketObserver.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/common/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/common/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuid.cpp
rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuid.h
rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/common/ObexBase.cpp
rename : dom/bluetooth/ObexBase.h => dom/bluetooth/common/ObexBase.h
2015-08-21 15:17:44 +08:00