mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782616 - Use more appropriate return types than nsresult; r=mak
This commit is contained in:
parent
3d59821c90
commit
61fdd38409
@ -907,7 +907,7 @@ private:
|
||||
mozStorageStatementScoper scoper(stmt);
|
||||
nsresult rv = stmt->BindInt64ByName(NS_LITERAL_CSTRING("visit_date"),
|
||||
_place.visitTime);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
scoper.Abandon();
|
||||
}
|
||||
|
@ -714,7 +714,7 @@ nsNavHistory::GetNewSessionID()
|
||||
"SELECT session FROM moz_historyvisits "
|
||||
"ORDER BY visit_date DESC "
|
||||
), getter_AddRefs(selectSession));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, 0);
|
||||
bool hasSession;
|
||||
if (NS_SUCCEEDED(selectSession->ExecuteStep(&hasSession)) && hasSession) {
|
||||
mLastSessionID = selectSession->AsInt64(0) + 1;
|
||||
|
@ -550,7 +550,7 @@ function test_invalid_sessionId_ignored()
|
||||
new VisitInfo(),
|
||||
],
|
||||
};
|
||||
place.visits[0].sessionId = -1;
|
||||
place.visits[0].sessionId = 0;
|
||||
do_check_false(gGlobalHistory.isVisited(place.uri));
|
||||
|
||||
gHistory.updatePlaces(place, expectHandleResult(function(aPlaceInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user