Kaydet (Commit) 6347df7a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1266458 Argument cannot be negative

and

coverity#1266464 Argument cannot be negative

Change-Id: I27fb7789cd37046fcdaeaaa801d6dc0547a8afa1
üst e11fe188
......@@ -1019,10 +1019,8 @@ void SAL_CALL XSecController::signatureCreated( sal_Int32 securityId, com::sun::
throw (com::sun::star::uno::RuntimeException, std::exception)
{
int index = findSignatureInfor(securityId);
DBG_ASSERT( index != -1, "Signature Not Found!" );
SignatureInformation& signatureInfor = m_vInternalSignatureInformations[index].signatureInfor;
assert(index != -1 && "Signature Not Found!");
SignatureInformation& signatureInfor = m_vInternalSignatureInformations.at(index).signatureInfor;
signatureInfor.nStatus = nResult;
}
......@@ -1033,10 +1031,8 @@ void SAL_CALL XSecController::signatureVerified( sal_Int32 securityId, com::sun:
throw (com::sun::star::uno::RuntimeException, std::exception)
{
int index = findSignatureInfor(securityId);
DBG_ASSERT( index != -1, "Signature Not Found!" );
SignatureInformation& signatureInfor = m_vInternalSignatureInformations[index].signatureInfor;
assert(index != -1 && "Signature Not Found!");
SignatureInformation& signatureInfor = m_vInternalSignatureInformations.at(index).signatureInfor;
signatureInfor.nStatus = nResult;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment