[Libreoffice-commits] core.git: filter/source

2023-03-29 Thread Yousef_Rabia (via logerrit)
 filter/source/svg/presentation_engine.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6700f7f5b4eae31bf020e7d073c496c6e67a2397
Author: Yousef_Rabia 
AuthorDate: Sun Mar 26 21:06:00 2023 +0200
Commit: Ilmari Lauhakangas 
CommitDate: Wed Mar 29 06:01:09 2023 +

tdf#147906 Use Math.hypot() for Pythagorean addition

Change-Id: I8823038bde51002ea8c02ca7e841aca99f928a58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149618
Tested-by: Ilmari Lauhakangas 
Reviewed-by: Ilmari Lauhakangas 

diff --git a/filter/source/svg/presentation_engine.js 
b/filter/source/svg/presentation_engine.js
index 08fdb283d60b..ba585b6f4b3c 100644
--- a/filter/source/svg/presentation_engine.js
+++ b/filter/source/svg/presentation_engine.js
@@ -763,7 +763,7 @@ function getDistance(p1, p2, props) {
 var x = p2[props[0]] - p1[props[0]],
 y = p2[props[1]] - p1[props[1]];
 
-return Math.sqrt((x * x) + (y * y));
+return Math.hypot(x, y);
 }
 
 /**


[Libreoffice-commits] core.git: bridges/source

2023-03-22 Thread Yousef_Rabia (via logerrit)
 bridges/source/cpp_uno/gcc3_linux_mips64/except.cxx |5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit a76ef6e4cb345d6aa70f4808188fce0ceacb
Author: Yousef_Rabia 
AuthorDate: Sun Mar 19 12:03:31 2023 +0200
Commit: Stephan Bergmann 
CommitDate: Wed Mar 22 07:54:53 2023 +

tdf#130924 : replace debugging printf calls with SAL_INFO/SAL_WARN

Change-Id: I94686f820e264867643bb30c83367ee702d3118d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149088
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/bridges/source/cpp_uno/gcc3_linux_mips64/except.cxx 
b/bridges/source/cpp_uno/gcc3_linux_mips64/except.cxx
index ca94243d06fe..4e8ab0f2e466 100644
--- a/bridges/source/cpp_uno/gcc3_linux_mips64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_mips64/except.cxx
@@ -154,9 +154,8 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription 
*pTypeDescr )
 // symbol and rtti-name is nearly identical,
 // the symbol is prefixed with _ZTI
 char const * rttiName = symName.getStr() +4;
-#if defined BRIDGES_DEBUG
-fprintf( stderr,"generated rtti for %s\n", rttiName );
-#endif
+SAL_INFO("bridges", "generated rtti for " << rttiName);
+
 if (pTypeDescr->pBaseTypeDescription)
 {
 // ensure availability of base


[Libreoffice-commits] core.git: extensions/source sc/source sd/source svx/inc

2023-03-15 Thread Yousef_Rabia (via logerrit)
 extensions/source/ole/servprov.cxx  |3 +--
 sc/source/ui/vba/vbaeventshelper.cxx|3 +--
 sd/source/ui/framework/configuration/ResourceId.cxx |3 +--
 svx/inc/sdr/primitive2d/primitivefactory2d.hxx  |2 +-
 4 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 08c283d63fa648f3db1ab6dddf9edb73f0c7194e
Author: Yousef_Rabia 
AuthorDate: Tue Mar 14 23:29:51 2023 +0200
Commit: Stephan Bergmann 
CommitDate: Wed Mar 15 10:49:54 2023 +

tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: I37b5056026f29d2619a4f9d3da9251924c7f5fdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148898
Reviewed-by: Stephan Bergmann 
Tested-by: Stephan Bergmann 

diff --git a/extensions/source/ole/servprov.cxx 
b/extensions/source/ole/servprov.cxx
index ea69be1d9fe2..f5a9323d361d 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -305,8 +305,7 @@ css::uno::Sequence 
OleConverter::getSupportedServiceNames()
 "com.sun.star.bridge.OleBridgeSupplier2",
 "com.sun.star.bridge.oleautomation.BridgeSupplier"};
 }
-return css::uno::Sequence{
-"com.sun.star.bridge.OleBridgeSupplierVar1"};
+return {"com.sun.star.bridge.OleBridgeSupplierVar1"};
 }
 
 // XInitialize 
--
diff --git a/sc/source/ui/vba/vbaeventshelper.cxx 
b/sc/source/ui/vba/vbaeventshelper.cxx
index 199c5493ef0b..9cfb3ab31b08 100644
--- a/sc/source/ui/vba/vbaeventshelper.cxx
+++ b/sc/source/ui/vba/vbaeventshelper.cxx
@@ -626,8 +626,7 @@ OUString ScVbaEventsHelper::getImplementationName()
 
 css::uno::Sequence ScVbaEventsHelper::getSupportedServiceNames()
 {
-return css::uno::Sequence{
-"com.sun.star.script.vba.VBASpreadsheetEventProcessor"};
+return {"com.sun.star.script.vba.VBASpreadsheetEventProcessor"};
 }
 
 // protected --
diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx 
b/sd/source/ui/framework/configuration/ResourceId.cxx
index 1845b353f168..21d7e6932bad 100644
--- a/sd/source/ui/framework/configuration/ResourceId.cxx
+++ b/sd/source/ui/framework/configuration/ResourceId.cxx
@@ -384,8 +384,7 @@ sal_Bool ResourceId::supportsService(OUString const & 
ServiceName)
 
 css::uno::Sequence ResourceId::getSupportedServiceNames()
 {
-return css::uno::Sequence{
-"com.sun.star.drawing.framework.ResourceId"};
+return {"com.sun.star.drawing.framework.ResourceId"};
 }
 
 /** When eMode is DIRECTLY then the anchor of the called object and the
diff --git a/svx/inc/sdr/primitive2d/primitivefactory2d.hxx 
b/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
index ffe099e609ef..eb1c8fd9b92f 100644
--- a/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
+++ b/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
@@ -61,7 +61,7 @@ public:
 
 css::uno::Sequence SAL_CALL getSupportedServiceNames() override
 {
-return css::uno::Sequence{ 
"com.sun.star.graphic.PrimitiveFactory2D" };
+return { "com.sun.star.graphic.PrimitiveFactory2D" };
 }
 };
 


[Libreoffice-commits] core.git: sal/osl

2023-03-09 Thread Yousef_Rabia (via logerrit)
 sal/osl/unx/system.hxx |5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit ddd2e00278eb489576eb4c63f44a1a034e7b9d8e
Author: Yousef_Rabia 
AuthorDate: Wed Mar 8 00:45:42 2023 +0200
Commit: Ilmari Lauhakangas 
CommitDate: Thu Mar 9 10:12:10 2023 +

tdf#143148 Use pragma once instead of include guards

Change-Id: I1c175753242783d83b5b1edc9b8b4cee2a5bd277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148449
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas 
Reviewed-by: Ilmari Lauhakangas 

diff --git a/sal/osl/unx/system.hxx b/sal/osl/unx/system.hxx
index 02d8b06c3bf5..f70887c8c42f 100644
--- a/sal/osl/unx/system.hxx
+++ b/sal/osl/unx/system.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SAL_OSL_UNX_SYSTEM_HXX
-#define INCLUDED_SAL_OSL_UNX_SYSTEM_HXX
+#pragma once
 
 #include 
 #include 
@@ -387,6 +386,4 @@ struct tm *gmtime_r(const time_t *timep, struct tm *buffer);
 #endif /* !defined(FREEBSD) */
 #endif
 
-#endif // INCLUDED_SAL_OSL_UNX_SYSTEM_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */