tdf#96505 : Get rid of cargo cult long integer literals
Change-Id: I7b269fb5bafceba071ebe649a696ef61301c4018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107366 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
parent
bf81aa59d8
commit
9feea2ecc5
7 changed files with 11 additions and 11 deletions
|
@ -103,7 +103,7 @@ SAL_DLLPUBLIC_EXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindo
|
|||
/* Get the drawing surface */
|
||||
ds = awt.GetDrawingSurface(env, obj_this);
|
||||
if (ds == NULL)
|
||||
return 0L;
|
||||
return 0;
|
||||
|
||||
/* Lock the drawing surface */
|
||||
lock = ds->Lock(ds);
|
||||
|
|
|
@ -97,7 +97,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_star_comp_beans_LocalOfficeWindow_getNative
|
|||
|
||||
/* Get the drawing surface */
|
||||
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
|
||||
return 0L;
|
||||
return 0;
|
||||
|
||||
/* Lock the drawing surface */
|
||||
lock = ds->Lock(ds);
|
||||
|
|
|
@ -87,7 +87,7 @@ JNIEXPORT jlong JNICALL Java_embeddedobj_test_NativeView_getNativeWindow
|
|||
|
||||
/* Get the drawing surface */
|
||||
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
|
||||
return 0L;
|
||||
return 0;
|
||||
|
||||
/* Lock the drawing surface */
|
||||
lock = ds->Lock(ds);
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#include "jawt_md.h"
|
||||
#include "nativeview.h"
|
||||
|
||||
#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,S); return 0L;}
|
||||
#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,S); return 0;}
|
||||
|
||||
#define SYSTEM_WIN32 1
|
||||
#define SYSTEM_WIN16 2
|
||||
|
@ -86,7 +86,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
|
|||
|
||||
/* Get the drawing surface */
|
||||
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
|
||||
return 0L;
|
||||
return 0;
|
||||
|
||||
/* Lock the drawing surface */
|
||||
lock = ds->Lock(ds);
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "jawt_md.h"
|
||||
#include "NativeView.h"
|
||||
|
||||
#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,"%s\n",S); return 0L;}
|
||||
#define MY_ASSERT(X,S) if (!X) { fprintf(stderr,"%s\n",S); return 0;}
|
||||
|
||||
#define SYSTEM_WIN32 1
|
||||
#define SYSTEM_WIN16 2
|
||||
|
@ -93,7 +93,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow
|
|||
|
||||
/* Get the drawing surface */
|
||||
if ((ds = awt.GetDrawingSurface(env, obj_this)) == NULL)
|
||||
return 0L;
|
||||
return 0;
|
||||
|
||||
/* Lock the drawing surface */
|
||||
lock = ds->Lock(ds);
|
||||
|
|
|
@ -74,7 +74,7 @@ DdeData& DdeData::operator=(DdeData&&) noexcept
|
|||
|
||||
tools::Long DdeData::getSize() const
|
||||
{
|
||||
return 0L;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void const * DdeData::getData() const
|
||||
|
@ -86,7 +86,7 @@ struct DdeImp {};
|
|||
|
||||
tools::Long DdeConnection::GetError() const
|
||||
{
|
||||
return 0L;
|
||||
return 0;
|
||||
}
|
||||
|
||||
DdeConnection::DdeConnection( SAL_UNUSED_PARAMETER const OUString&, SAL_UNUSED_PARAMETER const OUString& )
|
||||
|
|
|
@ -275,7 +275,7 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos)
|
|||
if ( rc != osl_File_E_None )
|
||||
{
|
||||
SetError( SVSTREAM_SEEK_ERROR );
|
||||
return 0L;
|
||||
return 0;
|
||||
}
|
||||
if ( nPos != STREAM_SEEK_TO_END )
|
||||
return nPos;
|
||||
|
@ -283,7 +283,7 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos)
|
|||
return nNewPos;
|
||||
}
|
||||
SetError( SVSTREAM_GENERALERROR );
|
||||
return 0L;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SvFileStream::FlushData()
|
||||
|
|
Loading…
Reference in a new issue