Kaydet (Commit) 1c1f4f7d authored tarafından Michael Stahl's avatar Michael Stahl

warning C4804: unsafe use of type 'bool'

... oh, MSVC actually found a bug there

Change-Id: I4672e5cabf16a39da6ef5d6c3b7e938284570e6e
üst 46293c0a
......@@ -71,7 +71,7 @@ uno::Any SwXRedlines::getByIndex(sal_Int32 nIndex)
throw uno::RuntimeException();
const SwRedlineTbl& rRedTbl = GetDoc()->GetRedlineTbl();
uno::Any aRet;
if(!rRedTbl.empty() > nIndex && nIndex >= 0)
if ((rRedTbl.size() > static_cast<size_t>(nIndex)) && (nIndex >= 0))
{
uno::Reference <beans::XPropertySet> xRet = SwXRedlines::GetObject( *rRedTbl[nIndex], *GetDoc() );
aRet <<= xRet;
......
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