summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShivam Kumar Singh <shivamhere247@gmail.com>2020-01-15 14:44:44 +0530
committerStephan Bergmann <sbergman@redhat.com>2020-02-04 18:27:25 +0100
commit03685b1ab86a9b8d78ad2a4fd460c2aaa50f03ab (patch)
tree88ca2b76e2056517b181a57e735f3e2f4a4ad316
parenta68157c88add7a815678155f4d7a743b010d92f5 (diff)
tdf#96505 Get rid of cargo cult "long" integer literals .
In some places the integers end with L which denotes that the number is in long long format. This representation was not required . Change-Id: Ia8ae328ee943780ccbfb7ce15013f3ac0365a3db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86842 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--embeddedobj/test/Container1/nativelib/nativeview.c2
-rw-r--r--include/editeng/svxfont.hxx2
-rw-r--r--include/salhelper/timer.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/embeddedobj/test/Container1/nativelib/nativeview.c b/embeddedobj/test/Container1/nativelib/nativeview.c
index 29dd49437e0b..9d0f478bd410 100644
--- a/embeddedobj/test/Container1/nativelib/nativeview.c
+++ b/embeddedobj/test/Container1/nativelib/nativeview.c
@@ -34,7 +34,7 @@ static LRESULT APIENTRY NativeViewWndProc( HWND , UINT , WPARAM , LPARAM );
#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
diff --git a/include/editeng/svxfont.hxx b/include/editeng/svxfont.hxx
index cf8862da0a9d..b584bb842b4d 100644
--- a/include/editeng/svxfont.hxx
+++ b/include/editeng/svxfont.hxx
@@ -53,7 +53,7 @@ public:
sal_uInt8 GetPropr() const { return nPropr; }
void SetPropr( const sal_uInt8 nNewPropr ) { nPropr = nNewPropr; }
void SetProprRel( const sal_uInt8 nNewPropr )
- { SetPropr( static_cast<sal_uInt8>( static_cast<long>(nNewPropr) * static_cast<long>(nPropr) / 100L ) ); }
+ { SetPropr( static_cast<sal_uInt8>( static_cast<long>(nNewPropr) * static_cast<long>(nPropr) / 100 ) ); }
// Kerning
short GetFixKerning() const { return nKern; }
diff --git a/include/salhelper/timer.hxx b/include/salhelper/timer.hxx
index 440790432f59..f6e67f454270 100644
--- a/include/salhelper/timer.hxx
+++ b/include/salhelper/timer.hxx
@@ -50,7 +50,7 @@ struct SAL_WARN_UNUSED TTimeValue : public TimeValue
TTimeValue(sal_uInt32 MilliSecs)
{
- Seconds = MilliSecs / 1000L;
+ Seconds = MilliSecs / 1000;
Nanosec = (MilliSecs % 1000) * 1000000L;
normalize();