diff options
author | 66kesara99 <dev.kesara@gmail.com> | 2017-09-23 07:07:14 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-24 20:18:56 +0200 |
commit | 16549dc267149aaf098191591acb20024ea21513 (patch) | |
tree | 6037a3e72b2289ed353f75e60faa60b0ba7b24f3 /embedserv | |
parent | 3f19b593019a62d97c8739e38c32902d7e19d790 (diff) |
tdf#96505 Get rid of cargo cult "long" integer literals
Remove unnecessary "Long" literals in multiple locations
Change-Id: Icc44546f10fed841683053eee01b788274e0add1
Reviewed-on: https://gerrit.libreoffice.org/42683
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/ed_ipersiststr.cxx | 12 | ||||
-rw-r--r-- | embedserv/source/embed/syswinwrapper.cxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx index 73263b5e3646..0de9ab79fd09 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 const aZero = { 0L, 0L }; + LARGE_INTEGER const aZero = { 0, 0 }; 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 const aZero = { 0L, 0L }; + LARGE_INTEGER const aZero = { 0, 0 }; HRESULT hr = pStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos ); if ( FAILED( hr ) ) return E_FAIL; - ULARGE_INTEGER const aUZero = { 0L, 0L }; + ULARGE_INTEGER const aUZero = { 0, 0 }; 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 const aZero = { 0L, 0L }; + LARGE_INTEGER const aZero = { 0, 0 }; 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 const aZero = { 0L, 0L }; + LARGE_INTEGER const aZero = { 0, 0 }; 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 const aZero = { 0L, 0L }; + LARGE_INTEGER const aZero = { 0, 0 }; hr = m_pExtStream->Seek( aZero, STREAM_SEEK_SET, &nNewPos ); if ( SUCCEEDED( hr ) ) { diff --git a/embedserv/source/embed/syswinwrapper.cxx b/embedserv/source/embed/syswinwrapper.cxx index b6d9f4247b67..64eefc17af38 100644 --- a/embedserv/source/embed/syswinwrapper.cxx +++ b/embedserv/source/embed/syswinwrapper.cxx @@ -432,7 +432,7 @@ LRESULT APIENTRY winwrap::HatchWndProc( return DefWindowProc(hWnd, iMsg, wParam, lParam); } - return 0L; + return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |