Skip to content

Commit

Permalink
Bug 1364364 - Part 1: Why are we declaring private virtual functions?…
Browse files Browse the repository at this point in the history
… r=smaug

MozReview-Commit-ID: KQxFTrEO1aq

--HG--
extra : rebase_source : 6b56cae60b7f82f3695d57d0e3f23bd59cc06756
  • Loading branch information
freesamael committed Aug 24, 2017
1 parent 95f774c commit dde797a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docshell/shistory/nsSHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ nsSHistory::GetEntryAtIndex(int32_t aIndex, bool aModifyIndex,
}

/* Get the transaction at a given index */
NS_IMETHODIMP
nsresult
nsSHistory::GetTransactionAtIndex(int32_t aIndex, nsISHTransaction** aResult)
{
nsresult rv;
Expand Down Expand Up @@ -1703,7 +1703,7 @@ nsSHistory::LoadNextPossibleEntry(int32_t aNewIndex, long aLoadType,
return NS_ERROR_FAILURE;
}

NS_IMETHODIMP
nsresult
nsSHistory::LoadEntry(int32_t aIndex, long aLoadType, uint32_t aHistCmd)
{
if (!mRootDocShell) {
Expand Down
5 changes: 2 additions & 3 deletions docshell/shistory/nsSHistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@ class nsSHistory final : public mozilla::LinkedListElement<nsSHistory>,
friend class nsSHEnumerator;
friend class nsSHistoryObserver;

// Could become part of nsIWebNavigation
NS_IMETHOD GetTransactionAtIndex(int32_t aIndex, nsISHTransaction** aResult);
nsresult GetTransactionAtIndex(int32_t aIndex, nsISHTransaction** aResult);
nsresult LoadDifferingEntries(nsISHEntry* aPrevEntry, nsISHEntry* aNextEntry,
nsIDocShell* aRootDocShell, long aLoadType,
bool& aDifferenceFound);
nsresult InitiateLoad(nsISHEntry* aFrameEntry, nsIDocShell* aFrameDS,
long aLoadType);

NS_IMETHOD LoadEntry(int32_t aIndex, long aLoadType, uint32_t aHistCmd);
nsresult LoadEntry(int32_t aIndex, long aLoadType, uint32_t aHistCmd);

#ifdef DEBUG
nsresult PrintHistory();
Expand Down

0 comments on commit dde797a

Please sign in to comment.