summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools
AgeCommit message (Collapse)Author
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-14tdf#88710 Kill svx dbtoolsclientMatthew Nicholls
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-04-13loplugin:redundantcast: redundant const_cast followed by implicit upcastStephan Bergmann
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
2015-04-01Remove redundant Reference<> from within UnoType<> usesStephan Bergmann
Change-Id: I1aeb9c73c284e39f371e49ded98e8dba0d055056
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: Id2361bd7b50f4724211661b024583b8a3445500b
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I24dc3a9b16abb1397cdd6a4f6cfafb81cc61d0f9
2015-03-29cppcheck: redundantAssignInSwitchJulien Nabet
Change-Id: I78fdbcde76d01c332430f63393936ab38ee13de5
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I6c7c31befd61cbf0800a62c08e7395ddf78e4b30
2015-03-25new constantfunction lopluginNoel Grandin
Change-Id: Ie9b7a0c41fc4dbd2560ceff6bae9ab85357f518b
2015-03-23Revert "loplugin:constantfunction: connectivity"Noel Grandin
it seems to be causing unit-test and build failures This reverts commit 5cbb51c009fa266e8418ef93799ac64e431c22f5. Change-Id: Idc6372f98200b23828aa19b22a75b6b2b640d1ab
2015-03-23loplugin:constantfunction: connectivityNoel Grandin
Change-Id: Ic1a71851a80ed2715969b0f00a0e59ab3a0593db
2015-03-09V801: Decreased performanceCaolán McNamara
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
2015-03-04V813: Decreased performanceCaolán McNamara
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-02getAny() is not a safe default, it assumes there is actually an AnyLionel Elie Mamane
at *m_aValue.m_pValue. But there could not even be a pointer there, e.g. if m_aValue.m_nIntXX is in use. Then the pointer dereference usually leads to a crash. Can e.g. be reproduced by calling getBytes() on an integer column of a RowSet. Change-Id: Ib5361d838d2869142fd797d4e3454e2562ea7acf
2015-02-23use init lists for property sequencesBjoern Michaelsen
Change-Id: I8b3b2b839c37b584e1a4036e49af7ff2737ea7f6
2015-02-20ANSI92 Entry SQL includes Primary Key supportLionel Elie Mamane
Change-Id: I68af66ce5ef9e31dce2c0e6f3dd2916bf601d73b
2015-02-19Fix component_getFactory function signatureStephan Bergmann
Change-Id: I0cf3b4446cdd60162aa979c7e223d37d9f508014
2015-02-19Remove unused using declarationsStephan Bergmann
Change-Id: I096e1eb534562e4428b66b7b73ab2900e0c09a55
2015-02-19unusedcode: Remove few methodsMatúš Kukan
Change-Id: Iacb18a06057b6becd077a49a71a95fb7e0961f3f
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-05BOOST_STATIC_ASSERT->static_assert and drop some includesCaolán McNamara
Change-Id: I74955a05bf13f7b33650d11c5cf4b1388382da2a
2015-01-28Use vector::dataStephan Bergmann
...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
2015-01-20Some more loplugin:cstylecast: connectivityStephan Bergmann
Change-Id: Iee1d11aef454284dbe050780c4308917c1a2b36f
2015-01-04boost::unordered_map->std::unordered_mapCaolán McNamara
Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db
2014-12-18connectivity: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I9ca72364cd57fd2da0c6f5f704a3fe494c0a1df5
2014-12-08callcatcher: update unused codeCaolán McNamara
Change-Id: I3cd65d112339fa9c67ed462fe39acbbef91d4d8d
2014-12-01fdo#86852 correctly recognise NULL values in query parameter values dialogLionel Elie Mamane
Change-Id: I3c0cf976e0a9fbafe6eee768799a2f48c2ee0ea9
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky
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#84073: change ODBC/JDBC escapes to lowercaseJulien Nabet
Change-Id: I19ce3acb9575fbef8273bbd84cb4dc322e101ac8
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca
* 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-10-03loplugin: cstylecastNoel Grandin
Change-Id: I114924d5e0407883b2e77016da3c2e3e55657b21
2014-10-01fdo#82577: Handle TimeNoel Grandin
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-26implement --with-system-odbc on windowsNoel Grandin
Change-Id: I1757b9ce74277b1c11533f41caeafaf9b88658ef
2014-09-25connectivity: std::auto_ptr -> std::unique_ptrStephan Bergmann
Change-Id: I796dc05d1846f140a56b5a6f14a69a239324ae5b
2014-08-28fdo#82088: changed namespace from utl to css::utilStefan Weiberg
- edit: deleted redefined css (alrdy global) Change-Id: I2e1b0a3d71ef25fdca2a56094283ed076e5cdd30 Reviewed-on: https://gerrit.libreoffice.org/11171 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-08-21staruno -> css::unoThomas Arnhold
Change-Id: Ic82bbe5797d4f3c16096598cd566b917ee335a10
2014-08-20make debug builds fail hard on unexpected conditionsLionel Elie Mamane
Change-Id: I0732ce65757ee29e5ad12cb576c5b64ed0edeaee
2014-08-20update comments with my new findingsLionel Elie Mamane
Change-Id: I58e07994e627ce980573812cbe56a068f66b1862
2014-08-20Remove more useless includes of tools/debug.hxxMarcos Paulo de Souza
Change-Id: If289dcbff125ac0088f01b5c9752f9f3173585dc Reviewed-on: https://gerrit.libreoffice.org/11020 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-20avoid potential null dereferenceDavid Tardon
Change-Id: I2236a18608ffa9481c30088044f34e1a3372dd11
2014-08-20do not use obsolete OSL_VERIFY macroDavid Tardon
Change-Id: I8efdd4933d3e47c5e086dc4a4685110390d6b6e8
2014-08-20this assert does not make senseDavid Tardon
... as the code apparently can work even if xFormatTypes is empty. Change-Id: I6b733b9b31329d4fafc745bc23d0f555286950e6
2014-08-18fdo#82757 call convertStringToNumber and detectNumberFormat with same localeLionel Elie Mamane
So that they agree (among others) on date recognition patterns. Change-Id: I964142702b5bb23bca2c62433e52f76dfa4bdacb
2014-07-22Resolves fdo#81213: Wrong table-clause generated by reportbuilderJulien Nabet
Oracle doesn't accept "AS" for making an alias from a table See https://bugs.freedesktop.org/show_bug.cgi?id=81213#c2 https://bugs.freedesktop.org/show_bug.cgi?id=81213#c4 https://bugs.freedesktop.org/show_bug.cgi?id=81213#c5 for more information (thank you Lionel) Change-Id: I33c86d78b2590116d4af46ffd3e54c3c791268ea
2014-07-21coverity#706376 Uncaught exceptionCaolán McNamara
Change-Id: Ic18823fd60826c144058df32c27ab25d58664e30
2014-07-06DBG_ASSERT->assert when followed by dereferenceCaolán McNamara
Change-Id: I9390228721df1b713d8cf2e719854b74d6b639c8