summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoredlines.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-27 18:01:01 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-27 18:04:02 +0200
commit1c1f4f7dd9cdb25eb18b9396eaa1fc3e4cadba81 (patch)
tree531aedfb5fa632b7ea87cc822e475799594a2737 /sw/source/core/unocore/unoredlines.cxx
parent46293c0a74f13e6cc5290fa5f062550c5db64b32 (diff)
warning C4804: unsafe use of type 'bool'
... oh, MSVC actually found a bug there Change-Id: I4672e5cabf16a39da6ef5d6c3b7e938284570e6e
Diffstat (limited to 'sw/source/core/unocore/unoredlines.cxx')
-rw-r--r--sw/source/core/unocore/unoredlines.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoredlines.cxx b/sw/source/core/unocore/unoredlines.cxx
index 82dd78e806f5..8dda244425e3 100644
--- a/sw/source/core/unocore/unoredlines.cxx
+++ b/sw/source/core/unocore/unoredlines.cxx
@@ -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;