From b13cd5f16379d4e665cc5a3dedd145559cd319b9 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 6 Aug 2004 19:34:21 +0000 Subject: [PATCH] Bug 121730 Add number of entries actually removed from sHistory when using PurgeHistory() r=bz sr=bz git-svn-id: svn://10.0.0.236/trunk@160455 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/components/shistory/public/nsISHistory.idl | 4 ++-- mozilla/xpfe/components/shistory/src/nsSHistory.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/xpfe/components/shistory/public/nsISHistory.idl b/mozilla/xpfe/components/shistory/public/nsISHistory.idl index f6dd8854177..c67fba0df03 100644 --- a/mozilla/xpfe/components/shistory/public/nsISHistory.idl +++ b/mozilla/xpfe/components/shistory/public/nsISHistory.idl @@ -113,8 +113,8 @@ interface nsISHistory: nsISupports * purged from history. During purge operation, * the latest documents are maintained and older * 'numEntries' documents are removed from history. - * @return NS_OK Purging was successfull - * NS_ERROR_FAILURE numEntries is + * @throws NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA Purge was vetod. + * @throws NS_ERROR_FAILURE numEntries is * invalid or out of bounds with the size of history. * */ diff --git a/mozilla/xpfe/components/shistory/src/nsSHistory.cpp b/mozilla/xpfe/components/shistory/src/nsSHistory.cpp index dc964eafd79..0334d2bc910 100644 --- a/mozilla/xpfe/components/shistory/src/nsSHistory.cpp +++ b/mozilla/xpfe/components/shistory/src/nsSHistory.cpp @@ -389,7 +389,7 @@ nsSHistory::PurgeHistory(PRInt32 aEntries) if (!purgeHistory) { // Listener asked us not to purge - return NS_OK; + return NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA; } PRInt32 cnt = 0;