Bug 1556489 - P5. Fix constness. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D40962
This commit is contained in:
Matt Woodrow 2019-08-06 17:19:09 +10:00 committed by Jean-Yves Avenard
parent e76aa88e15
commit 50cb731c68
2 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,8 @@ nsDocShellLoadState::nsDocShellLoadState(nsIURI* aURI)
MOZ_ASSERT(aURI, "Cannot create a LoadState with a null URI!");
}
nsDocShellLoadState::nsDocShellLoadState(DocShellLoadStateInit& aLoadState) {
nsDocShellLoadState::nsDocShellLoadState(
const DocShellLoadStateInit& aLoadState) {
MOZ_ASSERT(aLoadState.URI(), "Cannot create a LoadState with a null URI!");
mResultPrincipalURIIsSome = aLoadState.ResultPrincipalURIIsSome();
mKeepResultPrincipalURIIfSet = aLoadState.KeepResultPrincipalURIIfSet();

View File

@ -35,7 +35,8 @@ class nsDocShellLoadState final {
NS_INLINE_DECL_REFCOUNTING(nsDocShellLoadState);
explicit nsDocShellLoadState(nsIURI* aURI);
explicit nsDocShellLoadState(mozilla::dom::DocShellLoadStateInit& aLoadState);
explicit nsDocShellLoadState(
const mozilla::dom::DocShellLoadStateInit& aLoadState);
static nsresult CreateFromPendingChannel(nsIChildChannel* aPendingChannel,
nsDocShellLoadState** aResult);