summaryrefslogtreecommitdiff
path: root/connectivity/inc
AgeCommit message (Collapse)AuthorFilesLines
2016-09-22Remove NumberFormatCodeWrapperMaarten Bosmans2-2/+0
This class only adds a level of indirection, without any useful functionality. Change-Id: I806e1b9241caf025c62c12c93aad3101daac874a Reviewed-on: https://gerrit.libreoffice.org/29134 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-05-06connectivity: replace boost::remove_reference with std::remove_referenceMichael Stahl2-3/+0
Change-Id: I7c11fcdaf8065fa86d224ad2fab88b0bcb907255
2016-04-13tdf#94306 remove unused boost dependenciesJochen Nitschke1-1/+0
remove <boost/noncopyable.hpp> in pch and remove boost from makefile if it was the only boost entry. Change-Id: Icb945ae59c137571f4f63807601738eea5c3e831 Reviewed-on: https://gerrit.libreoffice.org/24061 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-17use consistent #define checks for the Windows platformNoel Grandin1-1/+1
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-03connectivity: replace boost::bind with lambdaMichael Stahl1-1/+0
Change-Id: I5a68b743221a3519701e4e3778562ae626783e0f
2016-01-22GCC PCH says -Werror=unused-macros BOOST_SPIRIT_DEBUGMichael Stahl1-1/+0
... so try to blacklist that boost::spirit header, it is fortunately included only in one cxx file per library anyway. Change-Id: I95752540d33b2b20d7a185c05c4d4d15e660d956
2015-12-10Undef RGB where it was defined, not where it gets usedStephan Bergmann1-0/+1
Change-Id: I274958964292f78c802748e17fca7f265ae5a4b8 Reviewed-on: https://gerrit.libreoffice.org/20429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-12-04Wingdi RGB macro handling improvedAshod Nakashian2-9/+6
Improved the isolation of windows headers. Specifically, RGB macro is better handled now. Change-Id: I0eeea16d0de9da3455810c80b0715f7b54ae8c3f Reviewed-on: https://gerrit.libreoffice.org/20039 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian11-354/+1026
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-14boost->stdCaolán McNamara3-4/+0
Change-Id: Iff14f69c200217c5d868978e8ffc06962b99ac09 Reviewed-on: https://gerrit.libreoffice.org/18568 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-11tdf#92459 remove o3tl/compat_functional.hxxDaniel Robertson3-3/+0
Replace all uses of deprecated features from the o3tl included in compat_functional.hxx with lambda expressions in connectivity and reportdesign. The patch should not cause any side effects. The change is largely cosmetic. Change-Id: I2042b91bf0fa2b47cce9ea11c97fa4ca6734c5e2 Reviewed-on: https://gerrit.libreoffice.org/17588 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe1-1/+1
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-17Remove include stdio (part1)Julien Nabet7-7/+0
Change-Id: I364aedbd8870c2bbd3440f144143c503dd7ff2c1 Reviewed-on: https://gerrit.libreoffice.org/15767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-04-22tdf#88710 Cleanup after removing dbtoolsclientMatthew Nicholls2-114/+0
Removes "virtualdbtools" and its implementation under "simpledbt", which are mostly wrappers around various dbtools functions and classes, previously aiding the now removed dynamic loading logic. Removes IDataAccessTools, IDataAccessTypeConversion and IDataAccessToolsFactory interfaces and their accompanying implementations which are completely unused. Removes IDataAccessCharSet (implemented by ODataAccessCharSet) and moves the implementation into a function which replaces ODataAccessCharsetHelper. Removes ISQLParseNode and ISQLParser and their implementation in OSimpleParseNode and OSimpleSQLParser, which simply wrap around OSQLParseNode and OSQLParser respectively. To avoid including "sqlbison.hxx" unnecessarily, includes to "sqlbison.hxx" are now only used where needed. Change-Id: Id882dfbf43514d84a1eaffc1f916d627830c8cd6 Reviewed-on: https://gerrit.libreoffice.org/15450 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
2015-04-14tdf#88710 Kill svx dbtoolsclientMatthew Nicholls2-0/+114
Removes dynamic loading logic described in tdf#84315, similar thing removed in swdbtoolsclient. Change-Id: I8762102a7263e6933354c2ff6f9978929b760f6e Reviewed-on: https://gerrit.libreoffice.org/15147 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2015-02-05BOOST_STATIC_ASSERT->static_assert and drop some includesCaolán McNamara2-2/+0
Change-Id: I74955a05bf13f7b33650d11c5cf4b1388382da2a
2015-02-05Updated all precompiled headers.Ashod Nakashian9-1/+18
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky1-1/+1
This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca1-1/+1
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-13update_pchThomas Arnhold3-3/+2
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-06-18rtl::Reference fits just fine hereStephan Bergmann1-1/+0
Change-Id: Ib48999c7fe532b2a8bf5222ef27d8d4929937e3b
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold19-3/+551
connectivity: 3m52s -> 2m47s cppcanvas: 28s -> 13s cppuhelper: 20s -> 14s dbaccess: 2m38s -> 2m01s hwpfilter: 16s -> 13s sot: 21s -> 16s Change-Id: I49286bfe6be73dd1b861be632b95e17a99e82f8a
2014-05-09update_pch: add a bunch of pch filesThomas Arnhold2-0/+190
I had to fix some source files because of macro redefinitions and such stuff. Small modules like basic have a great win, too: make basic.clean && time make basic: with w/o pch pch accessibility 23s 1m59s basctl 30s 1m42s basic 56s 1m35s comphelper 23s 51s editeng 48s 2m04s forms 40s 1m40s unotools 19s 38s sd 3m37s 4m33s Change-Id: Id24cdcddbe2ff64820b42266325c25af1355558f Reviewed-on: https://gerrit.libreoffice.org/9293 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-01-13drop unnecessary tools/string.hxx includesCaolán McNamara1-1/+0
Change-Id: I2439ed19b554381f80e882aacbac05167622df92
2013-10-15update pchThomas Arnhold2-0/+3
Change-Id: I475bee35ca5d24903d85e7f2427fab0e47d8db4d
2013-09-05update pchThomas Arnhold2-3/+1
Change-Id: I6d5e8d3fd69189935a3338fee19b60022f70a7eb
2013-04-23execute move of global headersBjoern Michaelsen53-8293/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane1-4/+6
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-15fdo#60724 successfull -> successfulThomas Arnhold2-2/+2
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák5-17/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák45-418/+418
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke2-2/+2
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05Drop jvmaccess and jvmfwk when no SOLAR_JAVATor Lillqvist1-1/+5
Just sprinkle #ifdef SOLAR_JAVA into the code instead. In the source for jvmaccess and jvmfwk such ifdefs can be removed as it isn't compiled unless SOLAR_JAVA. Change-Id: Ia8614f8bd6d833582d3b79b5fb75f9153fa79606
2013-03-27-Wunused-macrosStephan Bergmann1-3/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-26Do not needlessly include jvmaccess/virtualmachine.hxx in headerStephan Bergmann2-1/+3
Change-Id: Ieb1564eb7b477a7b239b07347f46fc55b64bd92b
2013-03-12update pch headersLuboš Luňák2-0/+14
Change-Id: Ibb368e6a806666a73bf6bf1a097d14bc6e75b24d
2013-03-04remove unused and commented out codeThomas Arnhold1-1/+0
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04coverity: merge traverse{OR,AND}Criteria into traverseSearchConditionLionel Elie Mamane1-2/+1
Meaning, these two functions have the same behaviour, they produce the same output (and side-effects) when called on the same input. traverseORCriteria handles only the actual "foo OR bar" case, and hands off all other cases to traverseANDCriteria. But, lo and behold, traverseANDCriteria also handles the "foo OR bar" case, in the same manner! Change-Id: I10410e88ce48852b60d1d688fe2865923de9d80b
2013-03-03fdo#60724: fix paramater -> parameter misspelling found by lintianVojta Koukal2-2/+2
Change-Id: I6c09767211817533494df34744a265cf28a76105
2013-03-02Typo fix: informations -> information and a few other adjacent typos.Gregg King1-1/+1
FDO:60724 Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b Reviewed-on: https://gerrit.libreoffice.org/2479 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-11fdo#46808, Adapt java::JavaVirtualMachine UNO service to new styleNoel Grandin1-3/+3
Change-Id: Ib0329b9cdc4290ce98c4182e8466c1b44b408341
2013-02-09ORowSetValue: move float and double to unionDavid Ostrovsky1-1/+4
Change-Id: Ic5de8ad2cf9ef1143b1a5468e5fc5c9974aca5ec Reviewed-on: https://gerrit.libreoffice.org/2021 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-02-05ORowSetValue: clean up sign/unsigned union memberDavid Ostrovsky1-91/+168
Also switch BOOLEAN constructor from sal_Bool to bool. old/new signed/unsigned storage situation: ------------------------------------------------------- SQL type | signed | unsigned old | unsigned new ------------------------------------------------------- TINYINT | sal_Int8 | sal_Int16 | sal_uInt8 SMALLINT | sal_Int16 | sal_Int32 | sal_uInt16 INTEGER | sal_Int32 | sal_Int64 | sal_uInt32 BIGINT | sal_Int64 | pValue (String*) | sal_uInt64 ------------------------------------------------------- When sticking an UNSIGNED TINYINT into an Any, silently promote it to UNSIGNED SMALLINT (that is sal_uInt16), else Any would take it as a sal_Bool and normalise to sal_True (1) or sal_False (0). When constructing an ORowSetValue from a sal_Bool, silently keep it as an unsigned 8 bit integer (that is understand it as a sal_uInt8). This will work in most cases, since when asked back for a bool or sal_Bool, we'll give back the right value. Only code looking at the type tag could possibly make a "wrong" decision. The main (hopefully only?) path through which this would happen is through an implementation of XParameters::setBoolean XRowUpdate::updateBoolean that would use its sal_Bool argument to construct an ORowSetValue. So make sure each implementation constructs a proper BOOLEAN so as not to get confused. For authorship/copyright purposes, this patch is a cooperation between Lionel Elie Mamane <lionel@mamane.lu> and David Ostrovsky <david@ostrovsky.org> Change-Id: I3f1f08716127147f077bff4edb6ec558b1b09e09
2013-01-23SQL parser: no "as" rule anymore; now as_clause and opt_asLionel Elie Mamane1-1/+2
Change-Id: Ib0c7151b311029318c213abb86e6541e3b27d040
2013-01-23Make UNKNOWN_RULE the default value of connectivity::OSQLParseNode::RuleLionel Elie Mamane1-3/+5
Change-Id: I4e56da8820d5c92d3b6e2ff2c749bdc0cef46d73
2013-01-09fdo#46808, new method OConfigurationTreeRoot::createWithComponentContextNoel Grandin2-6/+5
and use it to replace usage of createWithServiceFactory, and thus replace usage of XMultiServiceFactory. Change-Id: Id2f44066683ce17cf7a22f80916031556ef0e82a
2012-12-26ignore #include inside #ifLubos Lunak1-1/+0
2012-12-19regenerate pchPeter Foley2-18/+18
Change-Id: I4e18ce06db42e13479809ba8eec70033943271cf
2012-12-11When parsing does not give a table name, take it from the columnLionel Elie Mamane1-7/+7
Change-Id: Ie8a2c7e473d717cc22c51205dd8cdc59934de8b1
2012-12-10new autogenerated PCH headers in connectivityLuboš Luňák2-37/+89