summaryrefslogtreecommitdiffstats
path: root/cppuhelper
Commit message (Collapse)AuthorAgeFilesLines
* Fix removeRdbFiles (caused extension update to fail)Stephan Bergmann2012-08-291-11/+15
| | | | | | | | | | | | | removeRdbFiles suffered from a confusion that ImplementationInfo.uri denotes the corresponding component (.so, .jar, etc.), but not the .rdb file. So removing an .rdb file silently failed to remove the corresponding implementations, so re- installing a similar enough .rdb (as typically happens during extension update) would fail due to duplicate implementation names. Change-Id: I25d4ff72656c99a3af509eef09e89c18cfd0aabe Reviewed-on: https://gerrit.libreoffice.org/476 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Related fdo#52639: Do not destroy Implementations with mutex lockedStephan Bergmann2012-08-101-45/+56
| | | | | | | | | | | | | | Erasing from data_ member maps can destroy contained Implementations, which in turn releases the UNO objects referenced from there, which in turn can cause XComponents to dispose, which in turn can call arbitrary code, so must not be done with rMutex locked. Witness the backtrace at <https://bugs.freedesktop.org/attachment.cgi?id=65142> linked from fdo#52639 (where this fix appears otherwise unrelated to that issue's main topic). Change-Id: If55a3841b761ec1d9a0ef61fe54784426c4ee442 (cherry picked from commit 142d3ec875b446b56d0071c59d00937dea0cdd61) Signed-off-by: Michael Stahl <mstahl@redhat.com>
* ServiceManager::createInstanceWithContext needs to honor given ContextStephan Bergmann2012-08-091-12/+19
| | | | | | | | | | | | | | | | ...in loadImplementation (instead of using the context the ServiceManager itself was created with). Otherwise, the handcrafted context containing a fake theJavaVirtualMachine singleton in install_vm_singleton (javaunohelper/source/vm.cxx) would not be honored, so that if a Java process bootstraps native (binary) UNO and from there tries to obtain that singleton, it would erroneously try to instantiate another JVM instead of using the existing one. This was a regression introduced with the new ServiceManager and could be witnessed by test-javanative in ure/source/uretest/Makefile failing. Change-Id: I58cfbc8cdaea7ee4ab80fac728ea3e85676d69e1 (cherry picked from commit 9fc870fc33c2872aa93477523da4a54c841cf9b5) Signed-off-by: Michael Stahl <mstahl@redhat.com>
* fdo#51143 Do not wrap CannotActivateFactoryException as DeploymentExceptionStephan Bergmann2012-07-131-18/+6
| | | | | | | | | | ...as some client code catches just the former and thus fails now. (This was a regression introduced with the recent cppuhelper/source/defaultbootstrap.cxx.) Change-Id: I8306797f8331d894ab4e7695478e3824e9f79197 (cherry picked from commit 2e7702fb704133bad6a534a166e96599347cf6b4) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
* Revert MSVC ABI incompatible URE change (public -> protected)Stephan Bergmann2012-06-1414-2/+43
| | | | | | | | | | | ...the mangled names of the corresponding symbols change with MSVC if you change a member from public to protected. This had been changed with 6e67c03dc0225fc66343546b14e902b9d238b1a3 "Enable -Wnon-virtual-dtor for GCC 4.6" but should only be necessary for GCC, not for MSVC, so can simply be reverted under _MSC_VER. Change-Id: Id22aadaff3d7f30ed824f39fe22eab7ca39bd408 (cherry picked from commit 271c4e2fe53c6fe159789db27507804133e72814)
* Unbreak stuff on iOS a bit after bootstrapping changesTor Lillqvist2012-06-042-0/+4
| | | | Change-Id: I0d2ebfc9aa78a9fed057b853d54797a88218c587
* Revert "bootstrapping should elide duplicate .rdb paths in the configuration"Stephan Bergmann2012-06-011-8/+3
| | | | | | This reverts commit b162aec6254ab535cc5eb990b249f46aa8e79153, which increased code complexity for no benefit (the dubious scenario it was introduced for concerned duplicate service rdbs rather than type rdbs, anyway).
* Add "virtual" for consistencyStephan Bergmann2012-06-011-7/+8
| | | | Change-Id: I8ecc2edde553edbd80ca04e2f3d541c31f516211
* fdo#49291 Postpone actual factory instantiation as long as possibleStephan Bergmann2012-06-011-119/+314
| | | | | | | | | ...see comment in ServiceManager::createContentEnumeration for a rationale. Splitting ImplementationInfo out of Implementation has become necessary to avoid circular references. Change-Id: I29aef81ce78b9ab71e18663f8c7e6ca913c6a650
* removed dead codeTakeshi Abe2012-05-291-74/+0
| | | | Change-Id: Ic70d66befc90450aeb276d53f6da7e81aef85478
* bootstrapping should elide duplicate .rdb paths in the configurationMichael Meeks2012-05-221-3/+8
|
* fdo#42865: privatized unique empty string symbol:Michael Stahl2012-05-181-1/+2
| | | | | | Unfortunately this --enable-dbg-util only problem (caused by _GLIBCXX_DEUBG) resurfaced, perhaps because of new std::string based logging in sal; adapt all map files to export the unique symbol.
* Added link to LanguageTool.oxt issueStephan Bergmann2012-05-141-1/+3
| | | | Change-Id: Ifab63273b12963e748c9b937648b2079fcd0c796
* Work around extension factories not implementing XServiceInfoStephan Bergmann2012-05-141-0/+16
| | | | | | ...that would otherwise lead to "Bad insert element" failure during live-insertion. Change-Id: I74f883c9b613f03256abb7be7657f25b418f821d
* fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CASTThomas Arnhold2012-05-042-4/+4
| | | | Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
* make gbuild the default assumption of build.plBjoern Michaelsen2012-04-291-1/+0
| | | | | | | | this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
* dont mix gbuild and dmake in one moduleBjoern Michaelsen2012-04-291-1/+0
|
* WaE: implicit conversion changes signednessTor Lillqvist2012-04-241-1/+1
|
* WaE: simple minded MSVC2008 thinks s could be used uninitializedCaolán McNamara2012-04-241-1/+1
|
* doxygen warning fixesLuboš Luňák2012-04-233-6/+8
|
* Trying to parse legacy rdb as XML can cause InvalidRegistryException, tooStephan Bergmann2012-04-231-3/+5
|
* Do not fail for legacy rdb that only contains root keyStephan Bergmann2012-04-231-1/+6
|
* Various clean up of previous commitStephan Bergmann2012-04-203-4/+5
|
* New cppu::defaultBootstrap_InitialComponentContext implementationStephan Bergmann2012-04-2010-489/+2226
| | | | | | | | | | | | | | | | | | | | | | | ...that no longer uses XSimpleRegistry structures for the service data and thus is potentially more performant. * Registry-based functions from cppuhelper/bootstrap are deprecated now, client code should always use defaultBootstrap_InitialComponentContext. * References to the obsolete UNO_WRITERDB have been removed. * Some of the functions in cppuhelper/source that are used from multiple .cxx but had not been properly placed into .hxx have been cleaned up. * css.lang.ServiceManager XSet insert/remove now support special sequence<NamedValue> to improve live deployment/removal of XML-based extension components data. * 09524d410bbaad2a0b9b39811cb5cc16621b1396 "stoc: accelerate opening of multiple XML .rdb files in a directory" and its follow-up cb5c881a7f179391ee853f76e159254c97d776a3 "avoid using the new rdb reading logic for empty/non-existent directories" have been obsoleted by this change and have been reverted again.
* Remove extra parenthesisJulien Nabet2012-04-181-1/+1
|
* Put create_bootstrap_macro_expander_factory properly into a headerStephan Bergmann2012-04-184-10/+17
| | | | ...and fix the typo in its name.
* avoid using the new rdb reading logic for empty/non-existent directoriesMichael Meeks2012-04-181-1/+1
|
* Add static mapping of the fastsax componentTor Lillqvist2012-04-181-2/+4
|
* translated or removed german comments in connectivity, cppuhelper and cuiFlorian Allmann-Rahn2012-04-171-1/+1
|
* More static UNO component linkageTor Lillqvist2012-04-171-0/+8
|
* Add the package2 componentTor Lillqvist2012-04-161-0/+2
|
* Add utl and xstor UNO component mappingTor Lillqvist2012-04-151-0/+4
|
* Add newline...Tor Lillqvist2012-04-151-1/+1
|
* Add comphelp and stocservices UNO component mappingTor Lillqvist2012-04-151-0/+4
|
* Just assert if trying to "load" an unknown library when DISABLE_DYNLOADINGTor Lillqvist2012-04-151-1/+4
|
* Map and link in also the sfx UNO componentTor Lillqvist2012-04-151-0/+2
|
* Map and link in also the filterconfig1 UNO componentTor Lillqvist2012-04-151-0/+2
|
* stoc: accelerate opening of multiple XML .rdb files in a directoryMichael Meeks2012-04-141-11/+49
| | | | | | | | | Instead of nesting these, we aggregate them into a single non-nested registry, which saves lots of CPU at startup, sadly we can only do that for the new-style XML registries, so we have to sniff files, nevertheless this is still far faster. The merged xml files also break the XSimpleRegistry::getURL() method - but it appears not to get called.
* Use lo_get_libmap()Tor Lillqvist2012-04-091-17/+29
|
* cppuhelper: use InternalUnoApiMatúš Kukan2012-04-094-137/+19
|
* LinkTarget.mk: remove gb_LinkTarget_add_package_headersMichael Stahl2012-04-081-2/+4
|
* gbuild: "use" vs. "add":Michael Stahl2012-04-084-6/+6
| | | | | | | | | Naming convention for gbuild methods: - "add" is used for stuff that is logically a part of the target (i.e. not registered at the Module, but defined in the target's makefile) - "use" is used for stuff that is logically a different target (i.e. it is registered at the Module, has it's own makefile, may be in a different module than the target)
* Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2012-04-065-42/+30
|
* Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2012-04-061-6/+6
| | | | | | Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
* Updated workaround commentStephan Bergmann2012-04-021-2/+4
|
* More static lib name mappings. Yeah, need to do a gperf thing some nightTor Lillqvist2012-03-301-16/+13
|
* removed duplicate includes in cppcanvas / cppuhelper / cuiTakeshi Abe2012-03-301-2/+0
|
* Add some more temporary hardcoded library mappings for DISABLE_DYNLOADINGTor Lillqvist2012-03-291-2/+16
|
* Make SAL_CALL placement work with both MinGW and MSVCStephan Bergmann2012-03-221-4/+12
|
* Fix SAL_CALL placement (so MinGW won't complain)Stephan Bergmann2012-03-221-4/+4
|