summaryrefslogtreecommitdiffstats
path: root/cppuhelper
Commit message (Collapse)AuthorAgeFilesLines
* cppuhelper: remove obsolete Package_unorcMichael Stahl2013-10-243-40/+0
| | | | Change-Id: I4d513b69527ac21949f03b847a4638b92aef0a3e
* remove RTL_CONSTASCII_(U)STRINGPARAMChr. Rossmanith2013-10-239-178/+98
| | | | | Change-Id: I0bce921bfc7102b9a33b1c87eee3ddec0ebaed7b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with one little typo fix
* convert code to use OUString::endsWithNoel Grandin2013-10-232-4/+2
| | | | | | | | | Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
* Some clean-upStephan Bergmann2013-10-201-215/+92
| | | | Change-Id: I8ab23a4b09f9d31ed49c98cdbbf1abc0e684358a
* Clean-up std::bad_alloc handlingStephan Bergmann2013-10-201-186/+116
| | | | | | ...post 0bc89aac4c64bb833e387657f680e194c26aef97 "cppumaker: Allow UNO interface functions to throw std::exception." Change-Id: I232a1b266a45d39856d44a2f4e012b5df10fa880
* Minor refactoring of iOS codeTor Lillqvist2013-10-131-1/+1
| | | | | | | | | | Rename functions so that functions called by the UI layer for actions to happen in the LO layer and functions called by the LO layer for things to happen in the UI layer use different prefixes. Move declarations to the generic <touch/touch.h> and avoid iOS-specific types in the API. Change-Id: Ieb8979065e02a87c4a415c934163265f2790d011
* Not being able to honor a "prefix" is a rather hard errorStephan Bergmann2013-10-111-1/+1
| | | | | | | | | | | | | | | It happens when an extension has just been live-deployed into the running soffice process and then trying to instantiate out-of-process in an additional uno process one of that extension's shared library components and that component ---erroneously---uses the "prefix" feature. (Which can be reproduced with the mysql-connector-ooo.oxt extension, --enable-ext-mariadb-connector: "rm -rf instdir/*/share/extensions/mysql-connector-ooo", "instdir/*/program/soffice workdir/*/Extension/mysql-connector.oxt", install the per-user, then "File - New - Database - Connect to an existing database: MySQL - Next >> - Connect directly - Next >> - Database name: foo - Server / Port - Server: bar - Next >> - Test Connection", crash.) Change-Id: Ibab2ad31199eec5dc26ffa337a5e3e7490f782d7
* URE folder path fixes for the HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE caseTor Lillqvist2013-10-051-8/+10
| | | | Change-Id: I5019cce2172db7b3ac74e25f5ea9dc62e9fd03f8
* WaE: 'rPath' : unreferenced formal parameterTor Lillqvist2013-10-011-0/+1
| | | | Change-Id: I35aee7a1f8c2d79ac275262ba0cd002e4d034c95
* prevent WaE with unused parametersMarkus Mohrhard2013-10-011-0/+2
|
* [API CHANGE] Stricter requirements for shlib.hxx function argumentsStephan Bergmann2013-10-011-93/+24
| | | | | | | | 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
* [API CHANGE] Remove unused cppu::invokeStaticComponentFactory againStephan Bergmann2013-10-012-29/+21
| | | | | | | | | ...that has neither been intended for external use anyway, nor has it ever been used internally since its dead-on-arrival inception in b16ab7a751c04049b4171df412f1ef0f4f9b02f2 "Add invokeStaticComponentFactory() for statically linked components: Will be used for iOS at least." Sigh. Change-Id: I17795b2a1945809688deba0a5492415fbe877400
* All the content of cppuhelper/source/compat.cxx must be in namespace cppuStephan Bergmann2013-10-011-2/+2
| | | | Change-Id: I30dde10d1c299dbd9c0b2cb2fa025ce432df6cce
* [API CHANGE] Remove unused CPLD_ACCESS feature from C++/Java component loadersStephan Bergmann2013-10-011-169/+1
| | | | | | | | | | | | ...introduced in 2000 with 38974aeef6dfaa1c625cf5498ec553489dd08c87 "added library loading limitation by using env variable CPLD_ACCESSPATH=path1;path2; etc." and 9be3c618e0b1d2b2635bd7b134693ed5ff3021bc "#80090# restrict jar file access to java system property com.sun.star.comp.loader.CPLD_ACCESSPATH" but already in 2004 considered "a hack [that] seems to be unused nowadays" in 1d3164df959b31ba9f50ddc108569f3adec32ff7 "CWS sb20: #i29119# Replaced sandbox.jar-based class loader with an own one." Change-Id: I637afd5daeb4ca097edd17f834c81af892dcfc6a
* Special-case Mac OS X .jnilibStephan Bergmann2013-09-301-1/+5
| | | | Change-Id: I824e83271997888712f126f4197252d7beefccc1
* add mode lines to new files (and idls) since last runCaolán McNamara2013-09-223-0/+9
| | | | Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
* gbuild: make the versioned library the linktarget on UnixesMichael Stahl2013-09-221-1/+1
| | | | | | | | | | | | | | | | | If there is a SOVERSION then the versioned library is a real file and the unversioned one just a symlink; better to have the real file be the target. - add gb_Library_UDK_MAJORVER variable for SOVERSION - remove version parameter of gb_Library_set_soversion_script; instead hardcode the SOVERSION since it must be included in the file name in gb_Library_FILENAMES anyway - store the unversioned symlink in the ILIBTARGET variable - via new gb_Library_get_workdir_target_versionlink function - removed gb_Helper_install call that resulted in both versioned and unversioned libs in instdir Change-Id: I2c6f1698f0e39fdb2c07964d43ed9485cbca0b30
* Directly build UNOIDL .rdb files from .idl filesStephan Bergmann2013-09-191-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
* Set URE_INTERNAL_JAVA_DIR for unorc to allow jvm in unit tests.Andrzej J.R. Hunt2013-09-161-0/+1
| | | | | | | | | | | | | | Currently unit tests run in solver, the unorc in solver is simply copied from cppuhelper/source/unorc, which doesn't set URE_INTERNAL_JAVA_DIR, hence the jvm cannot be loaded in Unit tests. (For comparison the URE unorc in instdir is copied from ure/source/uno{rc,.ini} and contains the appropriate java paths.) (URE_INTERNAL_JAVA_CLASSPATH is not needed, at least currently.) Change-Id: I5911c9a22c92e0e20c98d0e51d5b14e020c8ec10 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, slightly modified
* Use OUString::startsWith where possibleStephan Bergmann2013-09-121-2/+2
| | | | Change-Id: I3f3b7b3600aa097187b05e21c375d087a2fa92bb
* Pass by const refStephan Bergmann2013-09-122-6/+7
| | | | Change-Id: Iacbb07d6478901be77feb253f526614800564c0f
* gbuild: use xml .rdb files directly from workdirMatúš Kukan2013-09-101-1/+1
| | | | Change-Id: I876a41dc77a59841c39b2c1fa43f22c20940dbf2
* s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar2013-09-071-1/+1
| | | | Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
* UNO interface UIKs are unused for a very long timeStephan Bergmann2013-09-041-3/+1
| | | | | | ...so mark them as @deprecated more thoroughly and always force them to zero. Change-Id: I5db2dab924fc5a4145a0e5dd055b654985ce2ef9
* Can unify this now it seemsTor Lillqvist2013-09-031-8/+0
| | | | Change-Id: I2fd0e1967028ad6632b39dfaaf377c7186a89229
* Update a few library namesTor Lillqvist2013-09-031-4/+4
| | | | Change-Id: I17c575ce0d4ba55a47a97d86c69a00ef7f822838
* build on higher debug levelsCaolán McNamara2013-08-241-0/+1
| | | | Change-Id: I7f4d85f3e26ab8b19dae05c6907840b97a8af1d6
* finish deprecation of O(U)String::valueOf()Luboš Luňák2013-08-211-2/+2
| | | | | | | Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
* OString’ was not declared in this scopeCaolán McNamara2013-08-211-0/+1
| | | | Change-Id: I753d725963c6f617e4c2d2bd775152a7369fd977
* Prefer using declarations over using directivesStephan Bergmann2013-08-1910-16/+26
| | | | Change-Id: I1316fc4ae1d4dab91684bdc059f5c69c5e0c401a
* Use upcasting Reference copy ctorStephan Bergmann2013-08-192-5/+5
| | | | Change-Id: Iab00310e2e6fcf8a43617363cf095a1bccfd9751
* Adapt for HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURETor Lillqvist2013-08-181-0/+14
| | | | Change-Id: I598efffda7be77171cdff9d3d5b8705972cfba18
* Mark as constTakeshi Abe2013-08-021-1/+1
| | | | Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
* remove OUString wrap for string literalsThomas Arnhold2013-06-291-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* use uno::Reference#clear() method...Noel Grandin2013-06-051-1/+1
| | | | | | ...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
* Support for annotations in the new UNOIDL formatStephan Bergmann2013-05-161-7/+8
| | | | | | | | | | ...used for now to transport @deprecated information. Also, improve Idx-String (formerly Idx-Name, but also used for UTF-8 annotations now) format, using the 0x80000000 for the indirection rather than the base case. (And the README erroneously used "Offset of" Idx-String all over the place.) Change-Id: I7003b1558ab536a11a9af308f9b16a7ef8840792
* Resolves: #i122208# introduce rtl::CStringHash and rtl::CStringEqualHerbert Dürr2013-05-101-17/+1
| | | | | | | | | | | | | | | | | | unify the various c-string compares and hashes. (cherry picked from commit b7e3470a154538a92f0a21b14e726d75723f4a92) Conflicts: oox/inc/oox/export/shapes.hxx oox/source/export/shapes.cxx sal/inc/rtl/string.hxx sdext/source/minimizer/pppoptimizertoken.cxx svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx vcl/source/glyphs/gcach_ftyp.cxx writerfilter/source/resourcemodel/TagLogger.cxx xmloff/source/draw/EnhancedCustomShapeToken.cxx Change-Id: Ib742744077bfb4d38a462d88b44bdef45601b4ae
* Don't call code in UNO object ctor that throws UNO exceptionsStephan Bergmann2013-05-084-11/+14
| | | | | | ...with Context set to this, that leads to refcounting bugs. Change-Id: I4875dbe4ccb5a7bcfaa8370b14d4eab83c21d0e5
* cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer2013-05-061-20/+10
| | | | | In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed automatically leaving several line breaks etc. as visual noise.
* remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2013-05-065-39/+22
| | | | | | | Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
* Adapt to library name changes for Android, tooTor Lillqvist2013-05-021-13/+7
| | | | Change-Id: I6da1f38c5a9693c13ef841442cbef017d388416a
* Library names have changed thanks to the "layer" changesTor Lillqvist2013-05-011-6/+6
| | | | Change-Id: I764702510b612da478959f457f95e6040c22f998
* Explicit copy ctor avoiding copying singular iteratorsStephan Bergmann2013-04-301-0/+9
| | | | Change-Id: I0727d4676166e63992e78ec3ac7e68c217fa794b
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-306-126/+24
|
* Fix TypeManagerStephan Bergmann2013-04-262-22/+26
| | | | | | | | | * Make use of unoidl::Manager::createCursor in TypeManager::createTypeDescriptionEnumeration * ConstantDescription::getName returned unprefixed name Change-Id: I4b2e1ce6a240d8f6292375ad36f71e0b19699367
* Get rid of UnoApiMerge_uretypes, which is just a duplicate of UnoApi_udkapiStephan Bergmann2013-04-241-1/+1
| | | | | | | | | What is a little confusing is that the udkapi.rdb ends up as types.rdb in the installation set (in the URE's sub-tree). So all places that reference it during the build do so as "udkapi" while all places that reference it in an installation set do so as "types." Change-Id: I35d0695966b3bd703f5494b636b9782efc0d3fcb
* Avoid (harmless) duplicate entryTor Lillqvist2013-04-241-1/+0
| | | | Change-Id: Ice43ab89b57f6ddb6b06d2fc5784d438031e864b
* gbuild: drop empty use_packages callsDavid Tardon2013-04-241-3/+0
| | | | | | | Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* move URE headers to include/David Tardon2013-04-2460-12123/+0
| | | | | | | Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* libcomphelpgcc3 got renamed to libcomphelperTor Lillqvist2013-04-231-1/+2
| | | | Change-Id: I8853c5102a7271e95adf7d420bb3ed719f5b96c6