summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-18 10:07:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-18 10:07:30 +0200
commitfd924b397b17e69dbf5721665d493d08c35fad59 (patch)
treeab514fa9c1b5c4f20e9c582aed43175a782ad634 /embedserv
parent8a62efcc846d27e5db2d37095bb79216a3230b9d (diff)
loplugin:oncevar (clang-cl)
Change-Id: I0cbd9a87880070e2c1381ecd385c1fe4c3ad7505
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 17d0bc002497..59099e572225 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -70,7 +70,7 @@ uno::Reference< io::XInputStream > createTempXInStreamFromIStream(
uno::Reference < io::XOutputStream > xTempOut( io::TempFile::create(comphelper::getComponentContext(xFactory)),
uno::UNO_QUERY_THROW );
ULARGE_INTEGER nNewPos;
- LARGE_INTEGER aZero = { 0L, 0L };
+ LARGE_INTEGER const aZero = { 0L, 0L };
HRESULT hr = pStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
if ( FAILED( hr ) ) return xResult;
@@ -129,10 +129,10 @@ HRESULT copyXTempOutToIStream( uno::Reference< io::XOutputStream > const & xTemp
// Seek to zero and truncate the stream
ULARGE_INTEGER nNewPos;
- LARGE_INTEGER aZero = { 0L, 0L };
+ LARGE_INTEGER const aZero = { 0L, 0L };
HRESULT hr = pStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
if ( FAILED( hr ) ) return E_FAIL;
- ULARGE_INTEGER aUZero = { 0L, 0L };
+ ULARGE_INTEGER const aUZero = { 0L, 0L };
hr = pStream->SetSize( aUZero );
if ( FAILED( hr ) ) return E_FAIL;
@@ -505,7 +505,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( IStorage *pStg )
if ( SUCCEEDED( hr ) )
{
ULARGE_INTEGER nNewPos;
- LARGE_INTEGER aZero = { 0L, 0L };
+ LARGE_INTEGER const aZero = { 0L, 0L };
hr = m_pExtStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
if ( SUCCEEDED( hr ) )
{
@@ -632,7 +632,7 @@ STDMETHODIMP EmbedDocument_Impl::Save( IStorage *pStgSave, BOOL fSameAsLoad )
{
// no need to truncate the stream, the size of the stream is always the same
ULARGE_INTEGER nNewPos;
- LARGE_INTEGER aZero = { 0L, 0L };
+ LARGE_INTEGER const aZero = { 0L, 0L };
hr = pNewExtStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
if ( SUCCEEDED( hr ) )
{
@@ -810,7 +810,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( LPCOLESTR pszFileName, DWORD /*dwMode*/ )
{
// no need to truncate the stream, the size of the stream is always the same
ULARGE_INTEGER nNewPos;
- LARGE_INTEGER aZero = { 0L, 0L };
+ LARGE_INTEGER const aZero = { 0L, 0L };
hr = m_pExtStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos );
if ( SUCCEEDED( hr ) )
{