796 Commits
Author SHA1 Message Date
Andrea Gelmini fe914e74f5 Fix typos
Change-Id: If42f02957a45b296dd5ab524a1cca85f94d5cded
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209906
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 09:13:46 +02:00
Andrea Gelmini 19c19b98a8 Fix typo "then"->"than"
Change-Id: Idaea43025716b80e42f908544da31cded63c99db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202916
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-03-29 09:44:50 +02:00
Noel Grandin 08f940a22d tdf#170298 handle out of range value in EDATE function
otherwise the code will get stuck in an infinite loop

Change-Id: I5715df3e462f7cbde24bd6237fbd58d4c685272f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199525
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-02-17 14:15:51 +01:00
Gabor Kelemen 752083b08c IWYU: drop some exceptions related to rtl::math and std::
at least recent 0.24 no longer warns about these

Change-Id: I1f7c4069df7d47bcd720298c93d71fd6c7bbed9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191002
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
2025-09-17 19:23:35 +02:00
Jesus Solis 2acf3fae59 tdf#145759 replace magic constant with symbolic constant
Change-Id: Ic2148533b1e1fdea66c8b6f575474dcad4069419
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189940
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2025-08-26 01:14:23 +02:00
Caolán McNamara be6015e3c4 cid#1659971 silence Overflowed return value
and

cid#1659699 Overflowed return value
cid#1659759 Overflowed return value
cid#1659922 Overflowed return value
cid#1660190 Overflowed return value
cid#1660286 Overflowed return value
cid#1660457 Overflowed return value

Change-Id: Ie9fffe4994b10ed3d4feb14eaf7950e3f01714ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189927
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-08-20 15:08:44 +02:00
Caolán McNamara 23f77eb0e2 cid#1660546 suppress Division or modulo by float zero
in spreadsheet related code, similar to runtime cases of
bin/sanitize-excludelist.txt but probably more dubious.

also:

cid#1660554 Division or modulo by float zero
cid#1660545 Division or modulo by float zero
cid#1660527 Division or modulo by float zero
cid#1660501 Division or modulo by float zero
cid#1660485 Division or modulo by float zero
cid#1660442 Division or modulo by float zero
cid#1660396 Division or modulo by float zero
cid#1660241 Division or modulo by float zero
cid#1660134 Division or modulo by float zero
cid#1660066 Division or modulo by float zero
cid#1659994 Division or modulo by float zero
cid#1659979 Division or modulo by float zero
cid#1659964 Division or modulo by float zero
cid#1659940 Division or modulo by float zero
cid#1659913 Division or modulo by float zero
cid#1659893 Division or modulo by float zero
cid#1659890 Division or modulo by float zero
cid#1659868 Division or modulo by float zero
cid#1659745 Division or modulo by float zero
cid#1659721 Division or modulo by float zero
cid#1659711 Division or modulo by float zero
cid#1659611 Division or modulo by float zero
cid#1659814 Division or modulo by float zero

Change-Id: I29830cad3170e5e45348f7bd4e08f028d21a4543
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189823
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-17 15:34:28 +02:00
Caolán McNamara 72e538b9bd tainted_data_return is deprecated
in favour of taint_source, lets drop them all first

Change-Id: I9c4e5c143fcbd6de9491360c993a8ea1b89a726e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189820
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-17 15:33:16 +02:00
Caolán McNamara b80cd12449 const up some more pieces
Change-Id: Ib85b8b4b3a2d00e7ef0ecb354fba0b862d60abdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187749
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-12 01:16:21 +02:00
Simon Chenery 0661337767 tdf#164954 rename German abbreviation "Koeff" to English "Coeff" in vars, funcs
The German word "Koeffizient" translates to "Coefficient" in English.

Change-Id: I38cbb327df085a607cb6922003fa3f07e27eca8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184663
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-04-30 09:36:53 +02:00
Gabor Kelemen d114f57ea5 Remove obsolete fw declarations from scaddins/
found with bin/find-unneeded-includes --fwdecl

Change-Id: I742740e45a78286aaa30dc16e787e370e4e16cd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183899
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-04-28 10:33:20 +02:00
dtm 418a55e0dc tdf#157794 refactor Complex to use std::complex where possible
Change-Id: Ie583399977caf266e3cc0a3cb78462be4cd63151
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160394
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-12-06 14:14:03 +01:00
Arnaud VERSINI fb30ee5a63 tdf#147021 : use std::size in scaddins
Change-Id: I8a17b5a782aedd8784595c7febbacc24921bce1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169357
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
2024-11-30 19:27:58 +01:00
Mike Kaganski d88683e467 Some simplification
Change-Id: I8dc994421ef036f609e270c4891ac4494276ba23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177299
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-26 05:47:32 +01:00
Aron Budea 9646eddfa0 tdf#163486 PVS V1023 A pointer without owner is added to the container
...by the 'emplace_back' method.

Change-Id: I76a0a655d5fc5b123cd1018cb010ff9c9625c1d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177226
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2024-11-25 06:50:14 +01:00
Caolán McNamara 12cad7e619 cid#1607163 silence Overflowed return value
and

cid#1608078 Overflowed return value
cid#1608461 Overflowed return value

Change-Id: Ic5fa20994c5be5d6c09a21c0bd1e3530ae9a6941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177164
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-24 15:14:59 +01:00
Bogdan Buzea 98355e65aa tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 562, 587

Change-Id: I99c433daf9072b4e070a2ba0095d51591ebf7810
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175359
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-06 22:42:47 +01:00
Xisco Fauli 79e77a81fd tdf#163486: PVS: enum type as bool
V768 	The variable 'eS' is of enum type. It is odd that it is used as a variable of a Boolean-type.

Change-Id: I959f58e80cd0a2d82e6c9fffe140a442cf4dbb0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175477
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-23 15:52:52 +02:00
Noel Grandin 963255acd4 cid#1608078 Overflowed return value
Change-Id: If654c8c86b71fdf1179f9ea89d31bf6b530e5046
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174744
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-10 07:46:59 +02:00
Caolán McNamara 35dfb73889 cid#1607355 silence Overflowed constant
and

cid#1607426 Overflowed constant
cid#1608151 Overflowed constant
cid#1608163 Overflowed constant
cid#1608208 Overflowed constant
cid#1608228 Overflowed constant
cid#1608299 Overflowed constant
cid#1608549 Overflowed constant
cid#1607982 Overflowed constant
cid#1608078 Overflowed return value

Change-Id: Id4ccc03b610f4dcf7912c239c7c079da1aef4ba2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173615
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-18 21:24:57 +02:00
Noel Grandin d573e2ae17 loplugin:ostr in various
Change-Id: I9f399b3752da9df930e0647536ffcd4e82beb1ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167856
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-20 22:09:56 +02:00
Gabor Kelemen ab95ed2c4b Use less boost_headers in low level libraries
Most of these don't use boost themselves, nor do they need
it transitively since the use of boost::optional was removed

Change-Id: Ic9dee1c4e160b313ec5b91677b02ffdea6c5779d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164440
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-03-06 21:23:17 +01:00
Luv Sharma 5fef3ebe9e tdf#148645 getDec2Hex now takes integer 'places' value (updated)
Change-Id: Ibc793f7654c9ec9b1a96b3caf2c16f2fde14c030
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163005
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-02-09 13:38:03 +01:00
Mike Kaganski bc5e5cb08a tdf#148645: add unit test
This introduces CppunitTest_scaddins_analysis.

Change-Id: I4e6d4215f05bc68852ecac12082e8398cca5be5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162982
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-02-05 09:55:45 +01:00
Luv Sharma 5986ab58db tdf#148645 getDec2Hex now takes integer 'places' value
Change-Id: I1491980d5ba693e3a0d899a13aa9615d84468e7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162860
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-02-05 08:31:33 +01:00
Mike Kaganski 0fa827dbb2 Drop std::as_const from css::uno::Sequence iterations
Obsoleted by commit 2484de6728 (Remove
non-const Sequence::begin()/end() in internal code, 2021-10-15) and
commit fb3c04bd19 (Drop non-const
Sequence::operator[] in internal code, 2021-11-05).

Change-Id: Idbafef5d34c0d4771cbbf75b9db9712e504164cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162640
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-01-27 12:43:48 +01:00
Julien Nabet 79a26ca7e5 Use emplace_back instead of push_back (scaddins)
Change-Id: I08b22351a3e75d5accbb3e59890f5e04b8fbb6d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161333
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-12-26 21:31:01 +01:00
t-aswath 0264999bb3 tdf#157716 - Rename "Language settings" to "Languages and Locales"
Change-Id: Idd31b18c87998b03d884e7aa17197c459241abf9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159315
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2023-11-18 16:01:33 +01:00
Stephan Bergmann 0241175221 Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: scaddins
Change-Id: I964223021109dbafedc875ab5c016e0fdef411b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158217
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-20 09:24:31 +02:00
Stephan Bergmann dcea29c283 Make NC_ constexpr-friendly
...by moving the char8_t -> char reinterpret_cast out of any potential constexpr
paths into a new TranslateId::getId.  And demonstrate constexpr'ability by
making the aCategories var in OApplicationIconControl::Fill
(dbaccess/source/ui/app/AppIconControl.cxx) constexpr.  (And there might be more
such cases that could now be made constexpr.)

Change-Id: I0b4e3292faf8f6b901f9b9e934e1aa6bf0f583ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157862
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-12 18:17:49 +02:00
Mike Kaganski 31486f92f9 Drop some defines in scaddins
Change-Id: I6155ad1c9e4627aad65ae1884e03491902c5d8a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150780
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-04-22 14:17:59 +02:00
Eike Rathke 90cbe03a0b Resolves: tdf#154941 MROUND() use approxValue of division to round
Change-Id: I75394b1bdffbdadf051157e84afa06f30126fe23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150764
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-04-21 21:37:15 +02:00
OmkarAcharekar bcf333309f tdf#147906 Use std::hypot for Pythagorean addition
Change-Id: I19ecfe80e9a927c14db2680188baa54cb4911d4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142535
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2022-11-19 00:48:16 +01:00
Rafael Lima bed4d8f1eb tdf#150465 Improve description of RANDBETWEEN in function wizard
As requested by the user, this patch makes it clearer that both Bottom and Top values may be returned by the RANDBETWEEN and RANDBETWEEN.NV functions, making the Function Wizard and the online Help descriptions more similar.

Change-Id: I730a9a5e42525f890c85c2489ef03797b812917a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141922
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-10-31 17:08:04 +01:00
OmkarAcharekar 4cec1ec1d5 tdf#145759 Use symbolic constants instead of magic numerical constants
Change-Id: I68f9dd0bbe5a98de35253220dc33382139b4950e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141657
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-10-25 08:12:26 +02:00
Eike Rathke 7dca847f07 Resolves: tdf#151165 Function Wizard: ISODD()/ISEVEN() truncate to integer
Change-Id: I73d06c6c40ac33f59cf38218b3e696de9aeb0b87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140569
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-09-25 17:39:53 +02:00
Liu Hao 3f284b6f12 tdf#148251 Use std::swap instead of using temporary values
Change-Id: Ibbc46bfb17d4d27dc40e63c65190b3f3a5f2d9c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138256
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2022-08-23 10:45:41 +02:00
Eike Rathke 8690d88782 Related: tdf#150203 Pricing, there is only one compatibility name, en-US
... but that was associated with de-DE instead.

Change-Id: I9024666b5d33bbabbdb514075fe0598d072dacd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137706
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-08-02 21:29:29 +02:00
Eike Rathke dac843c4dc Use nNumOfLoc instead of sizeof(pLang)
... which is count*sizeof(char*), but luckily this private
function was never used with out-of-bounds values.

Change-Id: Ief3b3de614ca0df00c424f7caabf70e029ea7266
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137703
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-08-02 20:22:47 +02:00
Stephan Bergmann 5687eba49f Drop obsolete preprocessor directives from UNOIDL files
...which were used by ildc, which is gone since
a8485d558f "[API CHANGE] Remove deprecated idlc
and regmerge from the SDK", and have always been ignored as legacy by its
unoidl-write replacement.

This change has been carried out (making use of GNU sed extensions) with

> for i in $(git ls-files \*.idl); do sed -i -z -E -e 's/\n\n((#[^\n]*\n)+\n)*(#[^\n]*\n)+\n?/\n\n/g' -e 's/\n(#[^\n]*\n)+/\n/g' "$i"; done && git checkout extensions/source/activex/so_activex.idl odk/examples/OLE/activex/so_activex.idl

which apparently happened to do the work.  (The final two files are not UNOIDL
source files.)

Change-Id: Ic9369e05d46e8f7e8a304ab01740b171b92335cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-06-13 16:27:45 +02:00
Stephan Bergmann 57087dd194 Pick better variable types
Change-Id: Ia4ba19744e23c20d9b6fb0e9d803bc00b415191f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133441
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-26 16:24:26 +02:00
pragat-pandya 5f21eaa0e6 tdf#145759 Using M_PI from cmath instead of magic constants.
Replace the instances of Pi's value as magic number by M_PI
Use M_PI_2 and 2_M_PI instead of calculating these values in code.
Use basegfx functions to convert angle units.

Change-Id: I6cca7cc93704a70ccf3a0571a56a789bc9df51ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129479
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2022-02-15 12:17:50 +01:00
Stephan Bergmann db3a61cd95 Generally determine Rdb content from gb_*_set_componentfile calls
...instead of by listing the content somewhat redundantly in the Rdb_*.mk
files, to avoid duplication of logic for components that are only built
conditionally (and thus should only be included conditionally in the
corresponding Rdb).  To achieve that, add an "rdb" parameter to
gb_ComponentTarget_ComponentTarget (and to the gb_*_set_componentfile macros
that internally call gb_ComponentTarget_ComponentTarget), which is used to make
the appropriate gb_Rdb_add_component call internally from within
gb_ComponentTarget_ComponentTarget.  (As a special case,
gb_CppunitTest_set_componentfile shall not call gb_Rdb_add_component, as that
has already been done by the corresponding gb_Library_set_componentfile call, so
allow the gb_ComponentTarget_ComponentTarget "rdb" parameter to be empty to
support that special case.)

Most Rdb_*.mk files are thus mostly empty now.  One exception is
i18npool/Rdb_saxparser.mk, which duplicates some of the Rdb_services content as
needed during the build in CustomTarget_i18npool/localedata.

1c9a40299d "gbuild: create services.rdb from built
components" had already tried to do something similar (in addition to other
things) under a new --enable-services-rdb-from-build option.  However, that
approach had four drawbacks that this approach here addresses (and which thus
partly reverts 1c9a40299d):

1  Rdb_services shall not contain the component files of all libraries that are
built.  While that commit filtered out the component files that go into
Rdb_ure/services (ure/Rdb_ure.mk), it failed to filter out the component files
that go into others like Rdb_postgresql-sdbc
(connectivity/Rdb_postgresql-sdbc.mk).

2  The code added by that commit to Makefile.gbuild codified the knowledge that
there is an Rdb_services, which is brittle.

3  The code added by that commit to solenv/gbuild/Rdb.mk codified the knowledge
(for gb_Rdb__URECOMPONENTS) that there is an Rdb_ure/services, which is brittle.

4  Introducing an --enable-services-rdb-from-build option needlessly provided
two different ways how the content of Rdb_services is assembled.

The changes done here would leave --enable-services-rdb-from-build as a
misnomer, as it no longer controls how Rdb_services is assembled.  I thus
renamed it to --enable-customtarget-components, as that is apparently what it
still does now.

Change-Id: Ia5e8df4b640146c77421fcec6daa11a9cd260265
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126577
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-12-10 08:14:24 +01:00
Mike Kaganski 5e5138db9f Add a bit to the WEEKS comment
Change-Id: I8d409149710d25aa93e33f3c46723239156f4d1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126304
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-12-06 11:28:43 +01:00
Mike Kaganski fb37997ece Small refactor
Change-Id: I9487c32a1482da24e7b656141b116e7c5ca6d2dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126297
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-12-04 15:00:07 +01:00
Andrea Gelmini 0ce6e166a4 Fix typos
Change-Id: I5e41be3f7e650db0019bcd42a3c1c2cb3bc5dd0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126155
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-12-01 06:03:13 +01:00
Winfried Donkers 105196aa00 tdf#145578, tdf#145587 revise calculations for WEEKS Add-In function
The calculations now follow the documentation for WEEKS in
https://wiki.documentfoundation.org/Documentation/Calc_Functions/WEEKS.

Change-Id: Ifede6e2ec2d9cfb7301fd5eb53bf7b6f187053bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125319
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-29 09:07:51 +01:00
Hossein 35c85effec Use M_PI instead of defined value; use rad2deg()
* Replace defined values of PI with M_PI defined in <cmath>
* Use M_PI_2 instead of PI / 2.0
* Instances could be found with:

    git grep 3.14 *.cxx *.hxx|grep define

* One instance is ignored:

  sc/source/core/opencl/opinlinefun_statistical.cxx

* Replace *(180 / PI) with basegfx::rad2deg()
* Replace 2*PI/360 with basegfx::deg2rad()
* Use atan2 instead of atan where it was more appropriate
  + atan2() handles all 4 quadrants
  + Extra conditions for different quadrants are removed

Change-Id: I083ee2e1427cd36ba0b8c38e4fe5f782d6486075
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124229
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-14 08:14:15 +01:00
Noel Grandin 283a9790bf loplugin:indentation check for indent inside block
look for places where the statements inside a block are
not indented

Change-Id: I0cbfa7e0b6fb194b2aff6fa7e070fb907d70ca2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123885
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-10-20 15:39:38 +02:00
Julien Nabet bf82274d32 drop 'using namespace std' in sax/sc/scaddins/sfx2/shell
Change-Id: I422a6d5b0151115203fd2d7c0fc5597903d3ec8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123064
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-10-04 22:25:07 +02:00