summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2022-06-13 17:09:08 +1000
committerStephan Bergmann <sbergman@redhat.com>2022-06-21 21:16:26 +0200
commit2bf296ddd10f0a56bdf799712bac1ccb10ed8b72 (patch)
tree5f688169f5fec232e7019e4a554e42f24a7e928c /io
parente02a7a55c23d23dd7afa2627a7e10c70e1cba001 (diff)
io: drop unnecessary cast
Change-Id: Iaceab1b85e41dbb2102fe829f7abc2f8e3898a52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135693 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/source/stm/odata.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index 754cda450a94..7d39a5835852 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -25,7 +25,6 @@
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/endian.h>
-#include <tools/long.hxx>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/io/XObjectInputStream.hpp>
@@ -1094,7 +1093,7 @@ Reference< XPersistObject > OObjectInputStream::readObject()
{
// grow to the right size
Reference< XPersistObject > xEmpty;
- m_aPersistVector.insert( m_aPersistVector.end(), static_cast<tools::Long>(nId - nSize + 1), xEmpty );
+ m_aPersistVector.insert( m_aPersistVector.end(), nId - nSize + 1, xEmpty );
}
m_aPersistVector[nId] = xLoadedObj;