Commit 0158360
committed
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.h1 parent 4837836 commit 0158360
File tree
3,177 files changed
+16667
-16667
lines changed- accessible
- base
- generic
- html
- windows
- ia2
- msaa
- sdn
- uia
- xpcom
- xul
- browser/components
- migration
- shell
- caps
- chrome
- docshell
- base
- timeline
- shistory
- dom
- activities
- alarm
- animation
- archivereader
- asmjscache
- audiochannel
- base
- bindings
- test
- bluetooth
- bluedroid
- hfp
- bluez
- common
- webapi
- ipc
- broadcastchannel
- browser-element
- cache
- camera
- canvas
- cellbroadcast
- crypto
- datastore
- devicestorage
- events
- fetch
- filehandle
- filesystem
- fmradio
- ipc
- gamepad
- windows
- geolocation
- html
- icc
- ipc
- indexedDB
- inputport
- ipc
- json
- jsurl
- media
- android
- apple
- directshow
- eme
- encoder
- fmp4_muxer
- fmp4
- gmp
- gstreamer
- gtest
- imagecapture
- mediasink
- mediasource
- gtest
- ogg
- omx
- platforms
- agnostic
- eme
- gmp
- android
- apple
- ffmpeg
- gonk
- wmf
- wrappers
- raw
- systemservices
- wave
- webaudio
- blink
- webm
- webrtc
- webspeech
- recognition
- test
- synth
- ipc
- pico
- speechd
- test
- windows
- messagechannel
- mobileconnection
- ipc
- mobilemessage
- ipc
- network
- nfc
- gonk
- notification
- offline
- permission
- plugins
- base
- android
- ipc
- power
- presentation
- ipc
- provider
- promise
- push
- quota
- requestsync
- security
- smil
- speakermanager
- storage
- svg
- system
- gonk
- mozstumbler
- mac
- qt
- windows
- telephony
- ipc
- time
- tv
- voicemail
- ipc
- vr
- wifi
- workers
- test/gtest
- xbl
- xml
- xslt
- xpath
- xslt
- xul
- templates
- editor
- composer
- libeditor
- txmgr
- txtsvc
- embedding
- browser
- components
- commandhandler
- find
- printingui/ipc
- webbrowserpersist
- windowwatcher
- extensions
- auth
- cookie
- gio
- spellcheck/src
- gfx
- 2d
- unittest
- cairo/cairo/src
- gl
- layers
- apz
- src
- test/gtest
- util
- basic
- client
- composite
- d3d11
- d3d9
- ipc
- opengl
- skia/skia/include/record
- src
- tests/gtest
- thebes
- vr
- hal
- gonk
- windows
- image
- decoders
- test/gtest
- intl
- hyphenation/glue
- locale
- strres
- ipc
- chromium/src
- base
- chrome/common
- dbus
- glue
- hal
- ipdl/ipdl
- keystore
- netd
- ril
- testshell
- unixsocket
- js
- src
- vm
- xpconnect
- idl
- loader
- src
- wrappers
- layout
- base
- gtest
- build
- forms
- generic
- inspector
- ipc
- mathml
- printing
- style
- test
- svg
- tables
- tools/layout-debug/src
- xul
- grid
- tree
- media
- libstagefright
- binding
- include/mp4_demuxer
- gtest
- mtransport
- test
- webrtc/signaling
- src
- jsep
- media-conduit
- mediapipeline
- media
- peerconnection
- test
- memory/volatile
- tests
- mfbt
- tests
- mobile/android/components/build
- modules
- libjar
- zipwriter
- libpref
- mozglue
- android
- linker
- tests
- netwerk
- base
- cache2
- cache
- cookie
- dns
- mdns/libmdns
- ipc
- protocol
- about
- app
- data
- device
- file
- ftp
- http
- res
- rtsp
- controller
- rtsp
- viewsource
- websocket
- wyciwyg
- sctp/datachannel
- streamconv/converters
- system/win32
- test
- wifi
- parser
- htmlparser
- html
- xml
- python/lldbutils/lldbutils
- rdf
- base
- datasource
- security
- apps
- manager/ssl
- tests/gtest
- startupcache
- storage
- test
- toolkit
- components
- alerts
- diskspacewatcher
- downloads
- filepicker
- filewatcher
- finalizationwitness
- jsdownloads/src
- osfile
- parentalcontrols
- perfmonitoring
- places
- tests/cpp
- startup
- telemetry
- typeaheadfind
- url-classifier
- profile
- system/gnome
- xre
- tools/profiler
- core
- gecko
- public
- tests/gtest
- uriloader
- base
- exthandler
- android
- gonk
- mac
- unix
- win
- prefetch
- view
- widget
- android
- cocoa
- gonk
- nativewindow
- GonkBufferQueueLL
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,177 files changed
+16667
-16667
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
| 435 | + | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments