Noel Grandin
71b809959b
remove unnecessary use of void in function declarations
...
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Stephan Bergmann
7956c4c517
Reduce to static_cast any reinterpret_cast from void pointers
...
Change-Id: I47be8a3e4be0a19fb476ab551e8bf394244a66a4
2015-03-31 13:16:04 +02:00
Stephan Bergmann
8dee9e90f7
Clean up C-style casts from pointers to void
...
Change-Id: I156cbb51efe9346af88fb82a648fa09715d299a5
2015-03-28 19:09:24 +01:00
Stephan Bergmann
9a3f8cc7fc
Improve previous commit to disambiguate FuncData types
...
...by making more liberal use of already existing sca::analysis namespace
instead.
Change-Id: I17355b3aca3a5f415db1de718feba9153012bb2a
2015-03-03 15:51:05 +01:00
Caolán McNamara
d929a1715d
Related: fdo#74880 small leak in scaddins
...
Change-Id: I331a3a358c5275b770aa1319f43af21b9bb3fd83
2015-02-16 15:34:47 +00:00
Tor Lillqvist
bff635be1d
Make the RAND() and RANDBETWEEN() Calc functions non-random when requested
...
We don't want such a mode to affect other uses of randomness, though. Thus use
a separate random number generator object for these two functions, and use a
fixed seed for it if the SC_RAND_REPEATABLE environment variable is set.
As RAND() is implemented in sc, and RANDBETWEEN() is implemented in scaddins,
it was a bit hard to figure out where to add the new functions needed, without
having to over-engineer things with UNO. (This functionality is totally
Calc-specific, but neither sc nor scaddins has any public (non-UNO) API.)
Caolan suggested the formula module, which seems like a good enough place to
me.
Change-Id: I4b0cb327392e51a18bce28478af91b0174d6b726
2015-01-20 18:12:38 +02:00
Miklos Vajna
f4fadeb63b
scaddins: fix Android build
...
_GLIBCXX_USE_C99_MATH_TR1 is defined on Linux, so nextafter() is
imported into the std namespace, but it isn't defined on Android. So
just import the whole namespace to make both happy.
Change-Id: I8a94198ff65557e64d4ea9f833e3eee5e1aa26ec
2015-01-07 11:24:02 +01:00
Caolán McNamara
15067728f2
add cmath for std::nextafter
...
Change-Id: Ic5580d5efb9d5a891a62630dc457624ba89c15a2
2015-01-06 15:52:49 +00:00
Caolán McNamara
7cc8e0c302
boost::math::nextafter->std::nextafter
...
Change-Id: I868b3fcf367e61c40e77e64bcc153b2a2feefa0b
2015-01-06 09:17:13 +00:00
Stephan Bergmann
108bab2bf7
scaddins: Use appropriate OUString functions on string constants
...
Change-Id: I2b38c1e22a5693a1d8eb947cd4e57bbf1f562599
2014-12-18 14:12:30 +01:00
Stephan Bergmann
0d58e67239
scaddins: Use appropriate OUString functions on string constants
...
Change-Id: If51c63d22223f968e185a05b79aed5bf861405a4
2014-12-15 10:14:54 +01:00
Tor Lillqvist
ce239f392c
RANDBETWEEN is supposed to return an integer
...
Change-Id: I82e7963b55cf2ab28c193f40fe8f30e097364653
2014-11-18 17:02:26 +02:00
Noel Grandin
705c48d32e
fdo#38835 strip out OUString globals
...
they are largely unnecessary these days, since our OUString infrastructure
gained optimised handling for static char constants.
Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-11-05 08:44:19 +02:00
Caolán McNamara
8f436d3de7
use comphelper::rng::uniform_*_distribution everywhere
...
and automatically seed from time on first use
coverity#1242393 Don't call rand
coverity#1242404 Don't call rand
coverity#1242410 Don't call rand and additionally allow 0xFF as a value
coverity#1242409 Don't call rand
coverity#1242399 Don't call rand
coverity#1242372 Don't call rand
coverity#1242377 Don't call rand
coverity#1242378 Don't call rand
coverity#1242379 Don't call rand
coverity#1242382 Don't call rand
coverity#1242383 Don't call rand
coverity#1242402 Don't call rand
coverity#1242397 Don't call rand
coverity#1242390 Don't call rand
coverity#1242389 Don't call rand
coverity#1242388 Don't call rand
coverity#1242386 Don't call rand
coverity#1242384 Don't call rand
coverity#1242394 Don't call rand
Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-06 14:13:27 +01:00
Noel Grandin
adc20c3937
compareToAscii -> equalsAscii
...
convert places using compareToAscii that should be using equalsAscii
Change-Id: I97b4da7f6e867c3967b2f65b70d6886f83b4a4e5
2014-06-04 11:52:31 +02:00
Noel Grandin
fda8ac2d17
scaddins: sal_Bool->bool
...
Change-Id: I8cea3bb0c407eba7928cb44d9ce00016ff890a41
2014-04-24 10:53:16 +02:00
Stephan Bergmann
5e21a413c7
cppuhelper: retrofit std::exception into overriding exception specs
...
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexandre Vicenzi
56b404001e
fdo#54938 Convert oox and scaddins to cppu::supportsService
...
Change-Id: If75e6e96887d63a555094a2a9c73ca8a157fe964
Reviewed-on: https://gerrit.libreoffice.org/7836
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com >
2014-02-04 02:37:05 +00:00
Noel Grandin
1f3eed97de
convert custom list implementation ScaDoubleList to std::vector
...
Change-Id: I98865a54f675ebdb7724327305f9f9a5eeccfeb4
2014-01-20 13:14:41 +02:00
Noel Grandin
9ed624752f
Convert custom list implementation ComplexList to use std::vector
...
Change-Id: Ifd02215e2b86fb9c527db0d4011781c4959c29bf
2014-01-20 13:14:21 +02:00
Noel Grandin
8e694ee17f
convert custom list implementation to regular std::vector<OUString>
...
Change-Id: I6749307d5b72ddc69581b4aa685091383117073d
Reviewed-on: https://gerrit.libreoffice.org/7369
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2014-01-17 22:38:02 +00:00
Stephan Bergmann
dbe880051a
Be explicit when using bool as integral value
...
...assuming these functions shall indeed only return 0 or 1.
Change-Id: Ia2071182ade5cdb3c7ea02380285966d6284b6d3
2014-01-10 17:11:49 +01:00
Noel Grandin
fcd1637d51
convert OUString compareToAscii == 0 to equalsAscii
...
Convert code like
aStr.compareToAscii("XXX") == 0
to
aStr.equalsAscii("XXX")
which is both easier to read and faster.
Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11 12:58:13 +02:00
Caolán McNamara
d69d6f4dc8
Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unused
...
Change-Id: I2a2cc56cf005f564c798b8d43ef7e8c4b7f9eeff
2013-08-16 13:59:30 +01:00
Thomas Arnhold
897380073d
scaddins: OUString cleanup
...
Change-Id: I82de6220b08bd5af23ec2a8103e2114b99483396
2013-04-02 14:21:18 +02:00
Thomas Arnhold
d062a16bfb
cleanup macros in scaddins
...
Change-Id: Id3c05d7771845f4a9f8c1105d9c9f126c6131cee
2013-04-02 14:21:18 +02:00
Eike Rathke
5be14df244
ResMgr with LanguageTag
...
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-29 14:09:01 +01:00
Thomas Arnhold
b29c2bfc86
scaddins: remove STRING macro
...
Change-Id: Ib8af7b4a84c96bbf1b7a0665ba05b83e5c023805
2013-03-09 15:48:42 +01:00
Noel Grandin
f4776bf465
fdo#46808, fix up some NumberFormatter createInstance calls I missed
...
Change-Id: Ieb3ce841243797a119f1d1d40379ff2a4614168f
2012-10-23 11:33:14 +02:00
Albert Thuswaldner
1f62afae0f
fdo#43135 - fix for MULTINOMIAL only supporting parameters up to 170
...
Change-Id: I9366de24414fa10e292e42df08a9658d90e5c1c1
2012-08-10 16:08:55 +02:00
Michael Meeks
8ed5bf0fca
re-base on ALv2 code.
2012-06-27 19:13:15 +01:00
Regina Henschel
e659fbd277
fdo#51017 ODFF: implement missing imaginary functions [AOO i111609 r1348096]
...
Adds IMTAN, IMSEC, IMCSC, IMCOT, IMSINH, IMCOSH, IMSECH, IMCSCH spreadsheet
functions.
Change-Id: I04ce0b1fdf787c3d8b2301cd92400e54049494bf
2012-06-12 23:55:48 +02:00
Thomas Arnhold
8b03510230
expand and remove CSS* macro
2012-02-21 14:02:45 +01:00
Olivier Hallot
fffd541c3e
Fix for fdo43460 Part XXIX getLength() to isEmpty()
...
Part XXIX
Modules
sax, scaddins, sccomp, scripting
2012-01-05 22:05:45 -02:00
Matúš Kukan
45fb35c7ac
add prefixes for component_getFactory
2011-07-28 14:35:37 +02:00
Matus Kukan
bc925cc2ad
Remove component_getImplementationEnvironment
2011-07-12 17:58:44 +02:00
Julien Nabet
8afda8d711
Easy Hack: Add visibility markup to all component_get* functions
2011-04-19 22:45:11 +02:00
Kohei Yoshida
12343c1556
Merge commit 'ooo/DEV300_m101' into integration/dev300_m101
2011-03-10 20:21:13 -05:00
Caolán McNamara
73259ccb76
pointless to go from char* to OString to char*
2011-03-01 20:34:21 +00:00
Mikhail Voytenko
071cddfecb
removetooltypes01: #i112600# adjust basic and scaddins
2011-01-10 14:40:57 +01:00
Kenneth Venken
f8e081876f
more Sal n elements
2010-12-03 13:59:12 +00:00
Pierre-André Jacquod
a03d77c77c
cleaning dead code in calc/scaddins
2010-11-21 10:28:09 +01:00
Sebastian Spaeth
63bb42ab7d
Add vim/emacs modelines to all source files
...
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com )
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de >
2010-10-13 10:57:18 +02:00
sb
a43f7851c7
sb129: #i113189# change UNO components to use passive registration
2010-09-10 13:10:07 +02:00
Eike Rathke [er]
7cf842d1a4
calc55: #i40309# #i31656# #i103458# improved accuracy of Bessel functions; patch from <regina>
2010-06-07 16:27:28 +02:00
Jens-Heiner Rechtien
4573ccfffd
changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2010-02-12 15:01:35 +01:00
Kurt Zenker
660fc34c7c
CWS-TOOLING: integrate CWS cmcfixes52
...
2009-01-05 10:49:04 +0100 cmc r265860 : #i97763# remove low-hanging warnings
2009-01-29 10:02:54 +00:00
Vladimir Glazounov
ff916ccce1
CWS-TOOLING: integrate CWS dr63
2008-09-30 13:51:36 +00:00
Rüdiger Timm
20a4b8743b
INTEGRATION: CWS changefileheader (1.45.4); FILE MERGED
...
2008/04/01 12:37:08 thb 1.45.4.2: #i85898# Stripping all external header guards
2008/03/31 17:23:09 rt 1.45.4.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:36:39 +00:00
Oliver Bolte
d4e0f02c03
INTEGRATION: CWS supdremove02 (1.43.64); FILE MERGED
...
2008/01/31 16:01:22 rt 1.43.64.2: RESYNC: (1.43-1.44); FILE MERGED
2008/01/31 13:46:40 rt 1.43.64.1: #i85482# Remove UPD from resource name.
2008-02-25 14:37:37 +00:00