summaryrefslogtreecommitdiffstats
path: root/testtools/source
Commit message (Collapse)AuthorAgeFilesLines
* ppc64: using a fp register also consumes a gp register slotCaolan McNamara2015-07-104-0/+17
| | | | | | | Change-Id: Idf6f40081f4598c0fa9d1e10bdc208eae49e4cd1 Reviewed-on: https://gerrit.libreoffice.org/16936 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:stringconstantStephan Bergmann2015-07-081-3/+3
| | | | Change-Id: Ia3275dc10ef18fd5978c7422b33012a5b1e4696c
* loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2015-06-082-4/+4
| | | | Change-Id: I13f61e80a27e58fba347173e5d84464553312836
* cppcheck: noExplicitConstructorCaolán McNamara2015-05-264-4/+4
| | | | Change-Id: I955b04396d27e88ce228f180275955071da83ec6
* Clean up checks of sal_Bool valuesStephan Bergmann2015-05-081-2/+2
| | | | Change-Id: Ia05565077823d6efaeaeb35d3d80b51dd9a10d4c
* More loplugin:simplifyboolStephan Bergmann2015-04-271-1/+1
| | | | Change-Id: I8d8d6220ff597ce416042fe03d86a7e7bb0a3518
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-013-32/+32
| | | | Change-Id: I02c70b26b82d2d0357111a127aefc57d3be21320
* Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2015-03-311-1/+1
| | | | Change-Id: If19e6222cc7dea2a3a4692d2d4cb43ccc46243a2
* V813: Decreased performanceCaolán McNamara2015-03-041-2/+2
| | | | Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
* testtools: mark CurrentContextChecker as DLLPRIVATEMichael Stahl2015-02-271-1/+1
| | | | | | | | | | | | | | | The problem is that currentcontextchecker.cxx is linked statically into 2 dynamic libraries, and with clang now using -fvisibility-ms-compat since commit f0aa1a78fb209310e8baef53c02f365fca518d11 the ASAN complains about ODR violation in testttols uno_test: ==1818==ERROR: AddressSanitizer: odr-violation (0x2aef08e9c600): [1] size=192 'vtable for testtools::bridgetest::CurrentContextChecker' testtools/source/bridgetest/currentcontextchecker.cxx [2] size=192 'vtable for testtools::bridgetest::CurrentContextChecker' testtools/source/bridgetest/currentcontextchecker.cxx Change-Id: Ie705788dbf035f7a9f64878c6dcf3cec9b7e7ba1
* loplugin:deletedspecialStephan Bergmann2015-02-071-2/+2
| | | | Change-Id: I9cdb0d7cb2bb9207923f2beedef0bbe44451fb6f
* Some more loplugin:cstylecast: testtoolsStephan Bergmann2015-01-201-4/+4
| | | | Change-Id: I28bce2f4bdbadef2d68130adc6fdc09c9840a005
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-021-4/+2
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* testtools: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-182-3/+2
| | | | Change-Id: I4258287401e76a2f37f88eeeba5aa11d693a01b8
* testtools: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-162-6/+6
| | | | Change-Id: Iacc67a087321e9cf0f699f4eecb334eb7372b885
* testtools: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-122-6/+3
| | | | Change-Id: I5cb34d95e2a59ff6a3f5189beb40b7dbf574dc29
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-061-1/+3
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-061-3/+1
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin2014-08-191-4/+4
| | | | Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
* java: remove commented out codeNoel Grandin2014-08-142-124/+6
| | | | Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
* java: add @Override annotation to overriding methodsNoel Grandin2014-08-123-0/+4
| | | | Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
* various: remove SAL_THROW macroNoel Grandin2014-06-051-2/+0
| | | | Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-232-32/+19
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-151-2/+2
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* various: sal_Bool->boolNoel Grandin2014-05-083-23/+23
| | | | Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
* Clean up function declarationsStephan Bergmann2014-04-092-9/+8
| | | | Change-Id: Ia4ed1d576cb3bcf46de3225e5569f9cfd15a6f7e
* remove unnecessary scope qualifier from sal_Bool usesNoel Grandin2014-04-033-13/+13
| | | | | | i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
* typo: inteface -> interfaceThomas Arnhold2014-03-291-1/+1
|
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-266-132/+132
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* Remove visual noise from testtoolsAlexander Wilms2014-02-279-53/+53
| | | | | | | Change-Id: Idbf31a46a9e174b96b3cac76be6a01a6ada0abde Reviewed-on: https://gerrit.libreoffice.org/8325 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-266-180/+180
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove unneccessary commentsAlexander Wilms2014-02-235-66/+66
| | | | | | | Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Typo: execption -> exceptionJulien Nabet2014-02-101-1/+1
| | | | Change-Id: Ib57e0cc39c27595490e29dec46cc6d33067c34b5
* bool improvementsStephan Bergmann2014-01-281-4/+4
| | | | Change-Id: Ifecb1d1e31759141d1468d40c3653a193561a98b
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-173-3/+3
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* Clean-up uno/lbnames.hStephan Bergmann2013-12-163-1/+2
| | | | Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
* Revert "throw new ..." fix in Managed C++ codeStephan Bergmann2013-12-041-3/+3
| | | | | | | | ...where it is correct and 336353a87e6003e685aab87ea74a158546e1f297 "Related rhbz#867808: More apparently bogus 'throw new ...' in C++ code" had changed it by accident. Change-Id: Id7fc1adf8c0068a3b59794d156b21f68b5ac7e72
* remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin2013-11-201-12/+12
| | | | | | | | | | Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
* -Werror,-Wunused-variableStephan Bergmann2013-11-191-4/+2
| | | | Change-Id: Ieac2e725b2baad29dedb225d6009b2abe421be04
* remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin2013-11-192-18/+18
| | | | | | This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
* -Werror,-Wunused-member-functionStephan Bergmann2013-11-141-3/+0
| | | | Change-Id: I6f8c9a32bc9266f20b5fc74b4e2f60f7b6be55d3
* convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin2013-11-111-2/+2
| | | | | | | | | | Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
* convert OUString 0==compareToAscii to equalsAsciiNoel Grandin2013-11-111-4/+4
| | | | | | | | | | Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
* Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin2013-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
* fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza2013-10-224-32/+7
| | | | | | | | | to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* add mode lines to new files (and idls) since last runCaolán McNamara2013-09-227-0/+21
| | | | Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
* remove OUString wrap for string literalsThomas Arnhold2013-06-291-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2013-05-062-10/+10
| | | | | | | Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
* Related rhbz#867808: More apparently bogus "throw new ..." in C++ codeStephan Bergmann2013-04-161-3/+3
| | | | Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-079-97/+87
| | | | | | | | 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