summaryrefslogtreecommitdiff
path: root/stoc
AgeCommit message (Collapse)AuthorFilesLines
2014-01-21Fix bogus mass-conversion equalsAsciiL -> startsWithStephan Bergmann3-31/+31
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. (cherry picked from commit a3f32769fc4bb23c64168b412dd10ec769a3854d) Conflicts: sc/source/ui/unoobj/nameuno.cxx sc/source/ui/unoobj/styleuno.cxx sfx2/source/appl/sfxhelp.cxx stoc/source/security/permissions.cxx sw/source/core/unocore/unocrsrhelper.cxx (None of those bogus startsWith calls seem problematic enough to warrant backporting also to libreoffice-4-2-0.) Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21 Reviewed-on: https://gerrit.libreoffice.org/7578 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin9-71/+57
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
2013-11-20convert equalsAsciiL calls to startsWith callsNoel Grandin3-34/+31
Convert code like: aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) ) to aStr.startsWith( "ActiveConnection" ) which compiles down to the same machine code. Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin2-8/+8
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin3-6/+4
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin1-1/+1
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-08remove unnecessary use of OUString constructor in STOC moduleNoel Grandin12-73/+70
Change-Id: I980223cedb6d0054ef71cbd81691f70a24f506ad
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin4-55/+55
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-11-04remove redundant calls to OUString constructorNoel Grandin2-6/+2
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza16-124/+32
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>
2013-10-20Clean up stoc::uriproc::supportsServiceStephan Bergmann8-97/+10
Change-Id: I1f324aae149e766d4755dc06ac5793c218ed5cf7
2013-10-20Some clean-upStephan Bergmann1-68/+45
Change-Id: Iea0daab5dbabefe119def6b07db73a573b703d32
2013-10-20Clean-up std::bad_alloc handlingStephan Bergmann3-32/+16
...post 0bc89aac4c64bb833e387657f680e194c26aef97 "cppumaker: Allow UNO interface functions to throw std::exception." Change-Id: I5fede822d279c3c758103192a813447bb4906679
2013-10-11No need to support "prefix" in DllComponentLoaderStephan Bergmann1-20/+2
...which is only used for extension components, and only while they are live- deployed into an soffice process and thus offloaded to an additional uno process (which never happens for bundled extensions), cf. cppuhelper::ServiceManager::loadImplementation (cppuhelper/source/servicemanager.cxx), and (at least non-bundled) extensions should never use the "prefix" feature anyway, cf. 3bafe5f5f529f6539363c5a291dd13ef1e2cbbde "Extension shared library components must not use the 'prefix' feature." Change-Id: I19c4b71029eccf0c4f3d4481ea5f3542205f685e
2013-10-02Spell "indices" correctlyTor Lillqvist1-9/+9
Change-Id: I63b1de195bf2f3f8bfd185181f48b1520cdd849f
2013-10-02-Werror,-Wunused-functionStephan Bergmann2-23/+0
Change-Id: I68d030642fc3f396f7d95602847725bb8299bebf
2013-10-01[API CHANGE] Stricter requirements for shlib.hxx function argumentsStephan Bergmann1-1/+1
rLibName -> uri must be an (absolute file) URI, rPath must be empty, and xKey must be null in loadSharedLibComponentFactory. While incompatible in theory, these functions should only be called internally, anyway. Change-Id: Iab144b199e4e7db62358283efec6877a5da19bab
2013-10-01IllegalArgumentException is a RuntimeException nowStephan Bergmann1-20/+3
Change-Id: I929da9300cc02da114907841ad8805d1227f3f79
2013-08-22Mark as constTakeshi Abe9-9/+9
Change-Id: I65a05b59da6dbc2d37a55129c54ca0f322702364
2013-08-22sal_Bool to boolTakeshi Abe2-5/+5
Change-Id: I4ab448a461a9fe37ba18838357d371f71b0a496c
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák2-13/+13
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-19Remove com.sun.star.comp.stoc.RegistryTypeDescriptionProviderStephan Bergmann24-4504/+0
...which had become unused with the new cppuhelper/source/typemanager.cxx. Change-Id: Ic84d11cc9ecd1e7d73aa2757c14ffd46fa21e890
2013-08-19Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVATor Lillqvist1-1/+1
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-07-09Remove warning by using the right printf commandsArnaud Versini1-1/+1
Change-Id: Id476a0eb1f5965098c8cc2e2847547b1d23387eb Reviewed-on: https://gerrit.libreoffice.org/4753 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2013-06-29remove OUString wrap for string literalsThomas Arnhold10-123/+123
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>
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann1-3/+3
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-05use uno::Reference#clear() method...Noel Grandin2-3/+3
...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-06-03re-base on ALv2 code. Includes:Michael Meeks1-84/+0
Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1397337 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. http://svn.apache.org/viewvc?view=revision&revision=1230971 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. http://svn.apache.org/viewvc?view=revision&revision=1232004 118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks http://svn.apache.org/viewvc?view=revision&revision=1310178 macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars http://svn.apache.org/viewvc?view=revision&revision=1183367 allow gbuild with empty sysroot on linux http://svn.apache.org/viewvc?view=revision&revision=1179186 Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database http://svn.apache.org/viewvc?view=revision&revision=1167540 http://svn.apache.org/viewvc?view=revision&revision=1167539 Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds http://svn.apache.org/viewvc?view=revision&revision=1232430 imported patch extensions_i117681.patch http://svn.apache.org/viewvc?view=revision&revision=1172102 Patches contributed by Michael Stahl gbuild: RepositoryFixes.mk should be optional http://svn.apache.org/viewvc?view=revision&revision=1166123 xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT http://svn.apache.org/viewvc?view=revision&revision=1363727 Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 Remove lots of OS2 conditionals, re-extract Rhino Java, unwind cppunit pieces, cleanup Mac image bits, remove coin-mp and re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand MPLv2 subset checking. Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-05-29fdo#60724 change spelling error REMOVEABLE -> REMOVABLE IIThomas Arnhold1-1/+1
Change-Id: I0057b9174af6a83f3fde0e27c3a91a4aeca95873 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl1-1/+2
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-06fdo#62475 - remove ASCII artPhilipp Riemer1-24/+9
2013-05-06cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer3-315/+194
In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed automatically leaving several line breaks etc. as visual noise.
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák16-212/+137
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-25Mark TypeDescriptionProvider service as "don't create by name"Stephan Bergmann1-3/+2
...had to adapt one test that had picked this service apparently arbitrarily. Change-Id: Iaa17b7c622b9ac3601beb3ba931f7b1d99f649f1
2013-04-22Revert "Revert "WIP: Experimental new binary type.rdb format""Stephan Bergmann10-2240/+0
This reverts commit 67e69a55820f50973ca0de75ccab2bb07d0bada8, applying a band- aid fix to cli_ure/source/climaker for now. Conflicts: stoc/inc/bootstrapservices.hxx stoc/source/tdmanager/lrucache.hxx stoc/source/tdmanager/tdmgr.cxx stoc/source/tdmanager/tdmgr_common.hxx stoc/source/tdmanager/tdmgr_tdenumeration.cxx stoc/source/tdmanager/tdmgr_tdenumeration.hxx Change-Id: Iae669985d0194f06fa349a4a39f0ebd230bc5d28
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks11-242/+44
2013-04-19Remove any remaining remnants of unused component_canUnload featureStephan Bergmann28-289/+75
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-19remove unused component_canUnload functionsMatúš Kukan12-109/+10
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-16Unused includeStephan Bergmann1-1/+0
Change-Id: If1b2a289212efb0080b1a0945219163f1fcc7d14
2013-04-16stoc: do not use rtl/unload.h functionalityMatúš Kukan1-128/+1
Change-Id: I7bddfbabc6e7e3a672681962f82e64ff4082e8b5 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-16Related rhbz#867808: More apparently bogus "throw new ..." in C++ codeStephan Bergmann1-2/+2
Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
2013-04-16rhbz#867808 Do not throw RuntimeException by pointerStephan Bergmann1-1/+1
Change-Id: I22b7d3d642e7ee0488d6b726a331d328065bbee7
2013-04-15prefix all component_getFactory methodsPeter Foley2-6/+2
Change-Id: I954176fdab9103125444dd2fb397673406f7aff9
2013-04-11Avoid an endless stream of NoSuchElementException exceptions.Jan Holesovsky1-9/+3
Extremely annoying during debugging; and throwing / catching is not the fastest operation under the sun... Change-Id: Ic5604bb1c3ef77d1577c4ac611af44be6fea6533
2013-04-10Introduce characters utilities in rtl/character.hxxArnaud Versini1-27/+8
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with slight modifications to sal/inc/rtl/character.hxx: * Replaced "#pragma once" with explicit include guard for now. * Missing includes. * Cosmetic clean-up. Change-Id: I94d01cd4e766f92c70f941839a67101fa2c97654
2013-04-10remove commented out codeThomas Arnhold1-18/+1
Change-Id: Ia79f094e33435386aeaf59929edb4372b38adb22
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák2-2/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák67-1080/+1026
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-03-30OSL_FAIL -> SAL_WARNThomas Arnhold1-5/+3
Change-Id: I1871e5e3a319b2d5177ae4bd470046c022c14eb7 Reviewed-on: https://gerrit.libreoffice.org/3121 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-03-27-Wunused-macrosStephan Bergmann1-9/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed