gecko-dev/xpcom/threads
David Major dc67bfc9a3 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
..
AbstractThread.cpp Bug 1345251 Make MozPromise usable on worker threads. r=gerald 2017-03-08 11:45:07 -05:00
AbstractThread.h Bug 1343337 - Remove IsDispatchReliable check from AbstractThread; r=bholley 2017-02-28 20:34:37 -08:00
BackgroundHangMonitor.cpp
BackgroundHangMonitor.h
BlockingResourceBase.cpp
BlockingResourceBase.h
CondVar.h
DeadlockDetector.h
Dispatcher.cpp Bug 1340665 - Fix warnings on shutdown. r=billm 2017-03-10 17:55:35 -08:00
Dispatcher.h Bug 1340665 - Fix warnings on shutdown. r=billm 2017-03-10 17:55:35 -08:00
HangAnnotations.cpp
HangAnnotations.h
HangMonitor.cpp Bug 1337499 - Take the Win64 stackwalk lock in WalkStackMain64 to avoid deadlocks. r=mstange 2017-02-17 10:51:11 +01:00
HangMonitor.h
LazyIdleThread.cpp
LazyIdleThread.h
LeakRefPtr.h
MainThreadIdlePeriod.cpp
MainThreadIdlePeriod.h
MainThreadUtils.h
Monitor.h
moz.build
MozPromise.h Bug 1345251 Make MozPromise usable on worker threads. r=gerald 2017-03-08 11:45:07 -05:00
Mutex.h
nsEnvironment.cpp
nsEnvironment.h
nsEventQueue.cpp
nsEventQueue.h
nsICancelableRunnable.h
nsIEnvironment.idl
nsIEventTarget.idl
nsIIdlePeriod.idl
nsIIncrementalRunnable.h
nsINamed.idl
nsIProcess.idl
nsIRunnable.idl
nsISupportsPriority.idl
nsIThread.idl
nsIThreadInternal.idl
nsIThreadManager.idl
nsIThreadPool.idl
nsITimer.idl
nsMemoryPressure.cpp
nsMemoryPressure.h
nsProcess.h
nsProcessCommon.cpp
nsProxyRelease.cpp
nsProxyRelease.h
nsThread.cpp Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron 2017-03-14 15:26:27 +13:00
nsThread.h
nsThreadManager.cpp
nsThreadManager.h
nsThreadPool.cpp Bug 1339289 - Give names to a lot of common runnables (r=ehsan) 2017-02-15 12:30:01 -08:00
nsThreadPool.h
nsThreadSyncDispatch.h
nsThreadUtils.cpp
nsThreadUtils.h
nsTimerImpl.cpp Bug 1339588 - Part 2: Help prevent nullptr crashes due to misuse of the timer API. r=froydnj 2017-02-14 16:27:33 -06:00
nsTimerImpl.h
ReentrantMonitor.h
SharedThreadPool.cpp
SharedThreadPool.h
StateMirroring.h
StateWatching.h
SyncRunnable.h
SystemGroup.cpp Bug 1340665 - Fix warnings on shutdown. r=billm 2017-03-10 17:55:35 -08:00
SystemGroup.h
TaskCategory.h
TaskDispatcher.h
TaskQueue.cpp
TaskQueue.h
ThreadStackHelper.cpp Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen 2017-02-17 17:13:57 -05:00
ThreadStackHelper.h Bug 1312883 - Remove all thread context processing from ThreadStackHelper. r=jchen 2017-02-17 17:13:57 -05:00
ThrottledEventQueue.cpp Bug 1339289 - Give names to a lot of common runnables (r=ehsan) 2017-02-15 12:30:01 -08:00
ThrottledEventQueue.h
TimerThread.cpp Bug 1339588 - Part 1: Simplify nsTimerEvent::Cancel, since there's no need to release the nsTimerImpl itself. r=froydnj 2017-02-14 15:29:01 -06:00
TimerThread.h