gecko-dev/intl/locale
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
..
mac 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
tests 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
unix Bug 1197309 - remove PR_snprintf calls in intl/; r=froydnj 2015-10-15 21:43:53 -04:00
windows Back out 2 changesets (bug 912470) for static analysis bustage 2015-09-10 09:37:51 -07:00
PluralForm.jsm Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
langGroups.properties Bug 947654 - Use font.*.x-math font preferences for MathML. r=karl, r=heycam 2015-05-25 02:40:00 +02:00
language.properties Bug 1038537 - Part 3: Flatten intl/locale/src/ directory. r=smontagu 2014-07-24 10:56:38 -07: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
nsCollation.cpp Bug 1038537 - Part 3: Flatten intl/locale/src/ directory. r=smontagu 2014-07-24 10:56:38 -07:00
nsCollation.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
nsCollationCID.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsDateTimeFormatCID.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsICollation.idl Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsIDateTimeFormat.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsILanguageAtomService.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsILocale.idl Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsILocaleService.idl Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsIPlatformCharset.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsIScriptableDateFormat.idl Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsLanguageAtomService.cpp Bug 1005863 - Part 1: Use props2arrays for langGroups.properties. r=hsivonen 2015-01-14 07:30:49 +02:00
nsLanguageAtomService.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
nsLocale.cpp Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
nsLocale.h Bug 1038537 - Part 3: Flatten intl/locale/src/ directory. r=smontagu 2014-07-24 10:56:38 -07:00
nsLocaleConstructors.h Bug 1038537 - Part 3: Flatten intl/locale/src/ directory. r=smontagu 2014-07-24 10:56:38 -07:00
nsLocaleService.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsPlatformCharset.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
nsPosixLocale.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
nsScriptableDateFormat.cpp Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-26 14:33:55 -04:00
nsUConvPropertySearch.cpp Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
nsUConvPropertySearch.h Bug 1038537 - Part 3: Flatten intl/locale/src/ directory. r=smontagu 2014-07-24 10:56:38 -07:00
nsWin32Locale.h Bug 1038537 - Part 4: Flatten intl/locale/{public,idl}/ directories. r=smontagu 2014-07-24 10:56:38 -07:00
props2arrays.py Bug 1134633 - convert makefile rules with props2arrays.py to use moz.build GENERATED_FILES; r=mshal 2015-02-19 10:35:08 -05:00