From 9e03f6820417c9fcda27b49d9fa5a464f1255c84 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 10 Feb 2019 12:27:45 +0200 Subject: loplugin:indentation in lingucomponent..tools Change-Id: I96ed4c51ce3fe45c1cb69a7d7ff917f1e152462e Reviewed-on: https://gerrit.libreoffice.org/67607 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/solar.h | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'include') diff --git a/include/tools/solar.h b/include/tools/solar.h index 9ee55c4ad5de..5ea3be835525 100644 --- a/include/tools/solar.h +++ b/include/tools/solar.h @@ -55,16 +55,19 @@ inline sal_uInt32 SVBT32ToUInt32 ( const SVBT32 p ) { return static_cast(p[2]) << 16) + (static_cast(p[3]) << 24)); } #if defined OSL_LITENDIAN -inline double SVBT64ToDouble( const SVBT64 p ) { double n; - reinterpret_cast(&n)[0] = p[0]; - reinterpret_cast(&n)[1] = p[1]; - reinterpret_cast(&n)[2] = p[2]; - reinterpret_cast(&n)[3] = p[3]; - reinterpret_cast(&n)[4] = p[4]; - reinterpret_cast(&n)[5] = p[5]; - reinterpret_cast(&n)[6] = p[6]; - reinterpret_cast(&n)[7] = p[7]; - return n; } +inline double SVBT64ToDouble( const SVBT64 p ) +{ + double n; + reinterpret_cast(&n)[0] = p[0]; + reinterpret_cast(&n)[1] = p[1]; + reinterpret_cast(&n)[2] = p[2]; + reinterpret_cast(&n)[3] = p[3]; + reinterpret_cast(&n)[4] = p[4]; + reinterpret_cast(&n)[5] = p[5]; + reinterpret_cast(&n)[6] = p[6]; + reinterpret_cast(&n)[7] = p[7]; + return n; +} #else inline double SVBT64ToDouble( const SVBT64 p ) { double n; reinterpret_cast(&n)[0] = p[7]; @@ -78,12 +81,18 @@ inline double SVBT64ToDouble( const SVBT64 p ) { double n; return n; } #endif -inline void ShortToSVBT16( sal_uInt16 n, SVBT16 p ) { p[0] = static_cast(n); - p[1] = static_cast(n >> 8); } -inline void UInt32ToSVBT32 ( sal_uInt32 n, SVBT32 p ) { p[0] = static_cast(n); - p[1] = static_cast(n >> 8); - p[2] = static_cast(n >> 16); - p[3] = static_cast(n >> 24); } +inline void ShortToSVBT16( sal_uInt16 n, SVBT16 p ) +{ + p[0] = static_cast(n); + p[1] = static_cast(n >> 8); +} +inline void UInt32ToSVBT32 ( sal_uInt32 n, SVBT32 p ) +{ + p[0] = static_cast(n); + p[1] = static_cast(n >> 8); + p[2] = static_cast(n >> 16); + p[3] = static_cast(n >> 24); +} #if defined OSL_LITENDIAN inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = reinterpret_cast(&n)[0]; p[1] = reinterpret_cast(&n)[1]; -- cgit