gecko-dev/modules/libpref
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
..
init Bug 1214932 - Remove fragmented-mp4 from media prefs. r=jya 2015-10-15 14:51:28 +13:00
test Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE 2015-10-07 14:03:21 +02:00
Makefile.in Bug 1209875 - Get rid of XULPPFLAGS. r=gps 2015-10-01 07:30:48 +09:00
moz.build Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
nsIPrefBranch2.idl Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
nsIPrefBranch.idl Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
nsIPrefBranchInternal.idl Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
nsIPrefLocalizedString.idl Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
nsIPrefService.idl Bug 1056170 - Expose pref service 'dirty' flag and test it. r=bsmedberg 2014-09-04 09:52:28 -04:00
nsIRelativeFilePref.idl Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
nsPrefBranch.cpp Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -07:00
nsPrefBranch.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsPrefsFactory.cpp Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg 2014-08-07 21:52:04 -07:00
prefapi_private_data.h Bug 1189587: Tighten signature of pref_HashTableLookup. r=njn 2015-07-31 13:06:12 -07:00
prefapi.cpp Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -07:00
prefapi.h Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8. 2015-09-15 20:49:53 -07:00
Preferences.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
Preferences.h Bug 1213123 - Make Preferences::SetString accept char16ptr_t instead of char16_t*. r=froydnj 2015-10-10 12:19:23 +11:00
prefread.cpp Bug 1098343 (part 1) - support 'sticky' preferences, meaning a user value is retained even when it matches the default. r=bsmedberg 2015-04-30 17:13:40 +10:00
prefread.h Bug 1098343 (part 1) - support 'sticky' preferences, meaning a user value is retained even when it matches the default. r=bsmedberg 2015-04-30 17:13:40 +10:00