summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-05-31 21:00:28 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-05-31 23:35:55 +0200
commitd9733c229f4dbd1f33ffd09eb6d31253c64cc30c (patch)
treeec553fa5845bcfde00479af5156c018b9860ac45
parenta512942270525405ea646c88dc1d460152a7aa46 (diff)
Unuseful check, unless nLoop is signed (as returned by GetSNumber)
Change-Id: If3a24832251de6be9c4428bfedb6a2a612d6a375
-rw-r--r--sw/source/filter/html/htmldrawreader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmldrawreader.cxx b/sw/source/filter/html/htmldrawreader.cxx
index 1fd1266e6eab..da355ef21dad 100644
--- a/sw/source/filter/html/htmldrawreader.cxx
+++ b/sw/source/filter/html/htmldrawreader.cxx
@@ -309,8 +309,8 @@ void SwHTMLParser::NewMarquee( HTMLTable *pCurTable )
}
else
{
- sal_uInt32 nLoop = rOption.GetSNumber();
- nCount = (sal_uInt16)(nLoop>0 ? nLoop : 0 );
+ const sal_Int32 nLoop = rOption.GetSNumber();
+ nCount = static_cast<sal_uInt16>(nLoop>0 ? nLoop : 0);
}
break;