зеркало из https://github.com/mozilla/gecko-dev.git
Port Ben's VC6 compiler bustage fixes to trunk.
This commit is contained in:
Родитель
f52eb72750
Коммит
72520f515f
|
@ -1200,7 +1200,8 @@ nsNavHistory::GetUpdateRequirements(const nsCOMArray<nsNavHistoryQuery>& aQuerie
|
|||
|
||||
// first check if there are search terms
|
||||
*aHasSearchTerms = PR_FALSE;
|
||||
for (PRInt32 i = 0; i < aQueries.Count(); i ++) {
|
||||
PRInt32 i;
|
||||
for (i = 0; i < aQueries.Count(); i ++) {
|
||||
aQueries[i]->GetHasSearchTerms(aHasSearchTerms);
|
||||
if (*aHasSearchTerms)
|
||||
break;
|
||||
|
@ -1213,7 +1214,7 @@ nsNavHistory::GetUpdateRequirements(const nsCOMArray<nsNavHistoryQuery>& aQuerie
|
|||
return QUERYUPDATE_COMPLEX;
|
||||
|
||||
PRBool nonTimeBasedItems = PR_FALSE;
|
||||
for (PRInt32 i = 0; i < aQueries.Count(); i ++) {
|
||||
for (i = 0; i < aQueries.Count(); i ++) {
|
||||
nsNavHistoryQuery* query = aQueries[i];
|
||||
|
||||
if (query->Folders().Length() > 0 || query->OnlyBookmarked()) {
|
||||
|
|
|
@ -1135,8 +1135,8 @@ nsNavHistoryContainerResultNode::RemoveChildAt(PRInt32 aIndex,
|
|||
PRBool
|
||||
nsNavHistoryContainerResultNode::CanRemoteContainersChange()
|
||||
{
|
||||
return (mContainerType != nsINavHistoryResultNode::RESULT_TYPE_FOLDER &&
|
||||
mContainerType != nsINavHistoryResultNode::RESULT_TYPE_QUERY);
|
||||
return (mContainerType != nsNavHistoryResultNode::RESULT_TYPE_FOLDER &&
|
||||
mContainerType != nsNavHistoryResultNode::RESULT_TYPE_QUERY);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1295,10 +1295,10 @@ nsNavHistoryContainerResultNode::AppendContainerNode(
|
|||
if (! IsTypeContainer(aContainerType) || IsTypeFolder(aContainerType) ||
|
||||
IsTypeQuery(aContainerType))
|
||||
return NS_ERROR_INVALID_ARG; // not proper container type
|
||||
if (aContainerType == nsINavHistoryResultNode::RESULT_TYPE_REMOTE_CONTAINER &&
|
||||
if (aContainerType == nsNavHistoryResultNode::RESULT_TYPE_REMOTE_CONTAINER &&
|
||||
aRemoteContainerType.IsEmpty())
|
||||
return NS_ERROR_INVALID_ARG; // remote containers must have r.c. type
|
||||
if (aContainerType != nsINavHistoryResultNode::RESULT_TYPE_REMOTE_CONTAINER &&
|
||||
if (aContainerType != nsNavHistoryResultNode::RESULT_TYPE_REMOTE_CONTAINER &&
|
||||
! aRemoteContainerType.IsEmpty())
|
||||
return NS_ERROR_INVALID_ARG; // non-remote containers must NOT have r.c. type
|
||||
|
||||
|
@ -1417,7 +1417,7 @@ nsNavHistoryQueryResultNode::nsNavHistoryQueryResultNode(
|
|||
const nsACString& aTitle, const nsACString& aIconURI,
|
||||
const nsACString& aQueryURI) :
|
||||
nsNavHistoryContainerResultNode(aTitle, aIconURI,
|
||||
nsINavHistoryResultNode::RESULT_TYPE_QUERY,
|
||||
nsNavHistoryResultNode::RESULT_TYPE_QUERY,
|
||||
PR_TRUE, EmptyCString()),
|
||||
mQueryURI(aQueryURI),
|
||||
mHasSearchTerms(PR_FALSE),
|
||||
|
@ -1434,7 +1434,7 @@ nsNavHistoryQueryResultNode::nsNavHistoryQueryResultNode(
|
|||
const nsCOMArray<nsNavHistoryQuery>& aQueries,
|
||||
nsNavHistoryQueryOptions* aOptions) :
|
||||
nsNavHistoryContainerResultNode(aTitle, aIconURI,
|
||||
nsINavHistoryResultNode::RESULT_TYPE_QUERY,
|
||||
nsNavHistoryResultNode::RESULT_TYPE_QUERY,
|
||||
PR_TRUE, EmptyCString()),
|
||||
mQueries(aQueries),
|
||||
mOptions(aOptions),
|
||||
|
@ -2308,7 +2308,7 @@ nsNavHistoryFolderResultNode::nsNavHistoryFolderResultNode(
|
|||
const nsACString& aTitle, nsNavHistoryQueryOptions* aOptions,
|
||||
PRInt64 aFolderId, const nsACString& aRemoteContainerType) :
|
||||
nsNavHistoryContainerResultNode(aTitle, EmptyCString(),
|
||||
nsINavHistoryResultNode::RESULT_TYPE_FOLDER,
|
||||
nsNavHistoryResultNode::RESULT_TYPE_FOLDER,
|
||||
PR_FALSE, aRemoteContainerType),
|
||||
mContentsValid(PR_FALSE),
|
||||
mOptions(aOptions),
|
||||
|
|
Загрузка…
Ссылка в новой задаче