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>
This commit is contained in:
Chris Sherlock
2022-06-21 21:16:26 +02:00
committed by Stephan Bergmann
parent e02a7a55c2
commit 2bf296ddd1
+1 -2
View File
@@ -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;