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

coverity#736092 Improper use of negative value

Change-Id: Ia96ae18275082a5d5f891140b2648d19279f71fa
üst 20960962
......@@ -1485,7 +1485,7 @@ void ScChangeActionContent::GetDescription(
if (aTmpStr.isEmpty())
aTmpStr = ScGlobal::GetRscString( STR_CHANGED_BLANK );
nPos = aRsc.indexOfAsciiL("#2", 2, nPos);
nPos = nPos >= 0 ? aRsc.indexOfAsciiL("#2", 2, nPos) : -1;
if (nPos >= 0)
{
aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
......
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