summaryrefslogtreecommitdiff
path: root/scaddins
AgeCommit message (Collapse)Author
2015-10-02loplugin:unusedmethodsNoel Grandin
Change-Id: Ie1603adf3908fd0668bcbe8f75c6bafa0d0bfd6c Reviewed-on: https://gerrit.libreoffice.org/19072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01remove old standalone Sun bug numbersNoel Grandin
Sun bug numbers without any accompanying text are completely useless. Fixed with git grep -lP '//\s*#\d+#\s*$' | xargs perl -i -ne'/\/\/\s*#\d+#\s*$/d or print' And then hand-checking the result to restore places where it deleted code. And then some more grepping and hand-editing to kill the others. Change-Id: Ia96ce4466db8bb8da363ebf41f0ae7f45f28bf29 Reviewed-on: https://gerrit.libreoffice.org/19023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-30Fix typosAndrea Gelmini
Change-Id: Ia41f4f0ca30ae3346d0720271478ec5bcdab797b Reviewed-on: https://gerrit.libreoffice.org/18967 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-15Resolves: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
with the variadic variants. Change-Id: I7154f9472f02fdf47d27ba715db55bb1ec669a8a Reviewed-on: https://gerrit.libreoffice.org/18580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-13Removed another FuncDataList collectionIan
This time the existing collection used a vector internally and mapped operations onto its standard interface. Removing it in favour of a raw typedef'd vector and find_if reduces the volume of code and simplifies the lookup mechanism. Change-Id: I86fdb85773577019073803c2fc249d04196afe31 Reviewed-on: https://gerrit.libreoffice.org/17680 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-08-13migrated some raw pointers to unique_ptr'sIan
Change-Id: Ibbe088e73bdf987bf3784b61aa8b38a86d6654e3 Reviewed-on: https://gerrit.libreoffice.org/17679 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-08-13tdf#90222: Removed ScaList and cleaned up usagesIan
- Removed now-unused ScaList type - Changed ScaFuncDataMap from a map to a vector, using find_if for lookup. Change-Id: Ia22763f221f9a58d85dc363cab2585d7df37877c Reviewed-on: https://gerrit.libreoffice.org/17678 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-08-12tdf#90222: Removed ScaList from pricing scaddinIan
Removed the ScaList type. Migrated the ScaFuncDataList to a vector and changed lookup to std::find_if with a functor. This reduces memory use slightly and makes the use of the lookup result a little simpler. Change-Id: I4e5f4d27107512a7c53935f123d5e7e8aca625ee Reviewed-on: https://gerrit.libreoffice.org/17652 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-08-12tdf#90222: Removed ScaFuncDataList typeIan
This repeats the same change in the pricing addin as already carried out in datefunc. This type was a special case of a custom implemented list, and wasused like a map. I have replaced it with a std::map typedef'd as ScaFuncDataMap. Since the map key also exists in the value object, there are more memory-efficient ways to implement this with a vector and a predicate functor for searching at the cost of some code complexity. I opted for the simpler code afforded by using a std::map implementation. Change-Id: I7d28e0bc58f713cf4f4e962302e09788b3ac4218 Reviewed-on: https://gerrit.libreoffice.org/17651 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-08-11tdf#90222: Removed ScaFuncDataList typeIan
This type was a special case of a custom implemented list, and was used like a map. I have replaced it with a std::map typedef'd as ScaFuncDataMap. Since the map key also exists in the value object, there are more memory-efficient ways to implement this with a vector and a predicate functor for searching at the cost of some code complexity. I opted for the simpler code afforded by using a std::map implementation. Change-Id: Idd450f4a908ff503cb02e8e363ddbe3512903f47 Reviewed-on: https://gerrit.libreoffice.org/17579 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-07tdf#90222: Removed redundant collection typeIan
Removed ScaStringList collection and replaced it with std::vector<OUString> Change-Id: Iba9680454a7a154cc445e2b5c8a436917868b40e Reviewed-on: https://gerrit.libreoffice.org/17573 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-07tdf#90222: Removed ScaStringList and replaced all uses with std::vectorIan
Change-Id: Icd12e4a1557b39fd387173ce261118c27200dd2b Reviewed-on: https://gerrit.libreoffice.org/17543 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-21loplugin:unusedmethods reportdesign,scaddinsNoel Grandin
Change-Id: I3e2ccdbc0dd97f276a96eae5c041c09e69cede91 Reviewed-on: https://gerrit.libreoffice.org/17235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-10add a SAL_RAND_REPEATABLE for repeatable random numsCaolán McNamara
merge the formula and comphelper ones together Change-Id: I2e7e2cdb176afc6982e384fa1e007da5b914e6f0
2015-07-04Fix typosAndrea Gelmini
Change-Id: Iddcc22f62ea134ea797292daa02e47042d52d0d1 Reviewed-on: https://gerrit.libreoffice.org/16710 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-06-29coverity#1308576 Uncaught exceptionCaolán McNamara
Change-Id: Ic31670bd8999961dc9571c8d55817951a702d417
2015-06-29coverity#1308594 Uncaught exceptionCaolán McNamara
Change-Id: Ic320ba53565ef735d24a3538bf1863b3fb37c97a
2015-06-29coverity#1308584 Uncaught exceptionCaolán McNamara
Change-Id: I55178c48f57c26f7eec7efa052abd9edbf7adeb0
2015-06-29tdf#39468 Translate German Comments - scaddins/Phillip Sz
Change-Id: I95ea40b1b349f03e8ce45906a50e18f7a95ca5e9 Reviewed-on: https://gerrit.libreoffice.org/16525 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-29coverity#1308568 Uncaught exceptionCaolán McNamara
Change-Id: Ic9e4136619d9babe5333f815c9a0268830fbc0d6
2015-06-29coverity#1308597 Uncaught exceptionCaolán McNamara
Change-Id: Ibcbdd39952a573e72edbe1813c9d8b73c5e32f78
2015-06-28coverity#1308546 Uncaught exceptionCaolán McNamara
Change-Id: Ia5b1c50ecff3fde4b698012304cd75fa1a7b4ce6
2015-06-28coverity#1308538 Uncaught exceptionCaolán McNamara
Change-Id: Ib1e110617911ae3e9c13f013f8e807576abb00e6
2015-06-28coverity#1308529 Uncaught exceptionCaolán McNamara
Change-Id: I8a91a9016e198e7f27d5c0e92789ae458f98f713
2015-06-28coverity#1308518 Uncaught exceptionCaolán McNamara
Change-Id: I511989f80316eb6791d3418848b1e5c7c4b97a85
2015-06-23Revert "Typo: iff->if"Julien Nabet
This reverts commit cf92da3d6e1de14756efe3f1ee79f393a2f3787d. iff can mean "if and only if" so not a typo
2015-06-23Typo: iff->ifJulien Nabet
Change-Id: I3fc60856b5a56e71d70b55c89323be074bdec3b3
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
Change-Id: Id1b618d9e0bfa69e3d118b6735fd421d0517c3d9
2015-06-02loplugin:loopvartoosmallNoel Grandin
Change-Id: I809e408c994222cfa95ba8f56e4db7bd96be7080
2015-05-05fdo#77985 make calc function NETWORKDAYS comply with ODFF1.2Winfried Donkers
Change-Id: I523b0c71bc0fed501a4d5fffd75c5a4704f6dd13 Reviewed-on: https://gerrit.libreoffice.org/9827 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
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-06Resolves: #i95167# XIRR() function gives Err:502Regina Henschel
Patch by: Driss Ben Zoubeir <driss.zoubeir@gmail.com> Review by: Regina Henschel <rb.henschel@t-online.de> (cherry picked from commit 85cd072198d9024c20b741c04a20ef99fc9b5910) Conflicts: scaddins/source/analysis/financial.cxx Change-Id: I385d5f9bfa840fe609cb5723f2d4d57d26fd0d6c
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I47be8a3e4be0a19fb476ab551e8bf394244a66a4
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I156cbb51efe9346af88fb82a648fa09715d299a5
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: I67b37e64435a038d4ed5d9acdfde668c86859121
2015-03-03Improve previous commit to disambiguate FuncData typesStephan Bergmann
...by making more liberal use of already existing sca::analysis namespace instead. Change-Id: I17355b3aca3a5f415db1de718feba9153012bb2a
2015-03-03Avoid ASan confusion of different FuncData typesStephan Bergmann
...in sc/inc/callform.hxx and scaddins/source/analysis/analysishelper.hxx, where using -fvisiblity-ms-compat for Clang -fsanitize=* on Linux would make both _ZTS8FuncData externally visible and confuse -fsanitize=address. Change-Id: I216665ca8931dbe22a7f9eccd4fa7d73592ef0b5
2015-02-16Related: fdo#74880 small leak in scaddinsCaolán McNamara
Change-Id: I331a3a358c5275b770aa1319f43af21b9bb3fd83
2015-02-16include algorithm for std::minCaolán McNamara
Change-Id: I74b8e08d17b411daa1466c261f4797ee43cdcf67
2015-01-20Make the RAND() and RANDBETWEEN() Calc functions non-random when requestedTor Lillqvist
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-20scaddins: quick fix for conflict on ConvertData.Michael Meeks
Also used by VCL image plugins - defer the rest to an easy-hack. Mostly impacts mobile which uses scaddins linked without a map file. Change-Id: I49fd40146905f4de42c9b0e7355ab89689c776bf
2015-01-07scaddins: fix Android buildMiklos Vajna
_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-06add cmath for std::nextafterCaolán McNamara
Change-Id: Ic5580d5efb9d5a891a62630dc457624ba89c15a2
2015-01-06boost::math::nextafter->std::nextafterCaolán McNamara
Change-Id: I868b3fcf367e61c40e77e64bcc153b2a2feefa0b
2014-12-21fdo#39440 reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
2014-12-18scaddins: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I2b38c1e22a5693a1d8eb947cd4e57bbf1f562599
2014-12-15scaddins: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: If51c63d22223f968e185a05b79aed5bf861405a4
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-18RANDBETWEEN is supposed to return an integerTor Lillqvist
Change-Id: I82e7963b55cf2ab28c193f40fe8f30e097364653
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>