summaryrefslogtreecommitdiffstats
path: root/toolkit/xre/dllservices
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/xre/dllservices')
-rw-r--r--toolkit/xre/dllservices/UntrustedModulesProcessor.cpp8
-rw-r--r--toolkit/xre/dllservices/UntrustedModulesProcessor.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/xre/dllservices/UntrustedModulesProcessor.cpp b/toolkit/xre/dllservices/UntrustedModulesProcessor.cpp
index 1d11837355..35dd814acd 100644
--- a/toolkit/xre/dllservices/UntrustedModulesProcessor.cpp
+++ b/toolkit/xre/dllservices/UntrustedModulesProcessor.cpp
@@ -409,7 +409,7 @@ RefPtr<ModulesTrustPromise> UntrustedModulesProcessor::GetModulesTrust(
RefPtr<ModulesTrustPromise::Private> p(
new ModulesTrustPromise::Private(__func__));
nsCOMPtr<nsISerialEventTarget> evtTarget(mThread);
- const char* source = __func__;
+ StaticString source = __func__;
auto runWrap = [evtTarget = std::move(evtTarget), p, source,
run = std::move(run)]() mutable -> void {
@@ -441,7 +441,7 @@ UntrustedModulesProcessor::GetProcessedDataInternal() {
}
RefPtr<UntrustedModulesPromise> UntrustedModulesProcessor::GetAllProcessedData(
- const char* aSource) {
+ StaticString aSource) {
AssertRunningOnLazyIdleThread();
UntrustedModulesData result;
@@ -471,7 +471,7 @@ UntrustedModulesProcessor::GetProcessedDataInternalChildProcess() {
new UntrustedModulesPromise::Private(__func__));
nsCOMPtr<nsISerialEventTarget> evtTarget(mThread);
- const char* source = __func__;
+ StaticString source = __func__;
auto completionRoutine = [evtTarget = std::move(evtTarget), p,
self = std::move(self), source,
whenProcessed = std::move(whenProcessed)]() {
@@ -570,7 +570,7 @@ void UntrustedModulesProcessor::BackgroundProcessModuleLoadQueueChildProcess() {
RefPtr<UntrustedModulesProcessor> self(this);
nsCOMPtr<nsISerialEventTarget> evtTarget(mThread);
- const char* source = __func__;
+ constexpr StaticString const source = __func__;
auto completionRoutine = [evtTarget = std::move(evtTarget),
self = std::move(self), source,
whenProcessed = std::move(whenProcessed)]() {
diff --git a/toolkit/xre/dllservices/UntrustedModulesProcessor.h b/toolkit/xre/dllservices/UntrustedModulesProcessor.h
index b91d88961a..3af6eab923 100644
--- a/toolkit/xre/dllservices/UntrustedModulesProcessor.h
+++ b/toolkit/xre/dllservices/UntrustedModulesProcessor.h
@@ -149,7 +149,7 @@ class UntrustedModulesProcessor final : public nsIObserver,
Priority aPriority);
void CompleteProcessing(ModulesMapResultWithLoads&& aModulesAndLoads);
- RefPtr<UntrustedModulesPromise> GetAllProcessedData(const char* aSource);
+ RefPtr<UntrustedModulesPromise> GetAllProcessedData(StaticString aSource);
private:
RefPtr<LazyIdleThread> mThread;