diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-20 14:04:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-20 14:04:58 +0200 |
commit | f340f0454627939f1830826fb5cc53a90e6c62a4 (patch) | |
tree | d50751ac555dd832564b6eaa285d7b806144c71c /include | |
parent | fdb7429bf5275469d05ea028a94aa6935399494e (diff) |
Pick a more suitable type for nLength
Change-Id: I6e38b82f08884c4e187e5b3ca2c95a0d4ca8d541
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/sequence.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx index 235c4c9b31a4..6dd4f9cc7225 100644 --- a/include/comphelper/sequence.hxx +++ b/include/comphelper/sequence.hxx @@ -94,11 +94,11 @@ namespace comphelper template<class T> void removeElementAt(staruno::Sequence<T>& _rSeq, sal_Int32 _nPos) { - sal_uInt32 nLength = _rSeq.getLength(); + sal_Int32 nLength = _rSeq.getLength(); - OSL_ENSURE(0 <= _nPos && (sal_uInt32)_nPos < nLength, "invalid index"); + OSL_ENSURE(0 <= _nPos && _nPos < nLength, "invalid index"); - for (sal_uInt32 i = (sal_uInt32)_nPos + 1; i < nLength; ++i) + for (sal_Int32 i = _nPos + 1; i < nLength; ++i) { _rSeq[i-1] = _rSeq[i]; } |