summaryrefslogtreecommitdiff
path: root/include/comphelper
AgeCommit message (Collapse)AuthorFilesLines
2015-04-08A UNO Any can't contain an AnyStephan Bergmann2-3/+2
...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
2015-04-08These function templates want to be inlineStephan Bergmann1-15/+15
Change-Id: I138919fff6e78ab8f751c5363ff73d6830f40222
2015-04-02Move osl::LibreOfficeKit stuff to comphelper for nowTor Lillqvist1-0/+30
Let's see where it actually will be needed. Sal is a "picky" place for new API, even inside LIBO_INTERNAL_ONLY. Change-Id: Ia0c5ee8cfc6ee526c5ad34d2f8aab0b14b5f805b
2015-04-02loplugin:staticmethodsNoel Grandin1-26/+16
Change-Id: I1f6c6d13697aa397067478d6b07429120106e6bd
2015-04-01Add isReadOnly() support to simplified configuration accessStephan Bergmann1-1/+24
[API CHANGE]: extends the css.configuration.XReadWriteAccess in an incompatible way, but that is unpublished, has been commented as "still unpublished and unstable," and was specifically introduced for internal use by the simplified configuration access, so should not affect 3rd party code. Change-Id: I99ce045f5bd8c598e689d46fb0d3626dfaa6d0a0
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2-4/+4
Change-Id: I8dd0e5c8837fe1615aa9d5f546c2fd1c0985f044
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2-3/+3
Change-Id: I062024d4768374e319b6c67ed8c7abcc89f9d552
2015-03-29Bin superfluous whitespace, ASCII art and useless commentsTor Lillqvist7-86/+6
Change-Id: Ic70fe69f407e49604b056cdcb92aa3d656e1aeaf
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann1-1/+1
Change-Id: Icdb619101a992a740c71545e669e138cb5dc63a6
2015-03-27new clang plugin: staticmethodsNoel Grandin7-19/+19
Genius suggestion from Tor Lillqvist, write a clang plugin that finds methods that can be static. Change-Id: Ie6684cc95d088e8750b300a028b49f763da00345
2015-03-19fix windows build and sal_Bool->boolCaolán McNamara1-1/+1
Change-Id: If88a5b1171ef0b586861dd071820bc993c4cf06e
2015-03-19fix windows build(2)Noel Grandin1-1/+1
after my commit 48bb2913a7459edb17a5f62c2f6e6fbc4f1051e2 "convert SFX_FILTER_ constants to enum class" Change-Id: I4e8bbbbe04bb5b9f2493281826fb156fee51cf40
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin2-26/+37
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-17Fix various XServiceInfo implementationsStephan Bergmann2-0/+61
...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f
2015-03-16Factor out the .uno: command dispatching to a separate function / file.Jan Holesovsky1-0/+31
Change-Id: I8486933d57d42992e66be7f17443320cfc2ad629
2015-03-12vcl: parallelize image scaling.Michael Meeks1-0/+3
(cherry picked from commit ffdf0ed4cd76188e780eceee4333f90a00217f9d) Change-Id: Ia452487c0c8c66a35c4b9fba225348bdef1a27f7
2015-03-09V801: Decreased performanceCaolán McNamara1-5/+5
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-03-05TyposAndras Timar1-12/+12
Change-Id: I33a740af4ccbcaa9ed4e3ffd79c4f8cda9b37dc4
2015-02-28TyposJulien Nabet1-1/+1
Change-Id: I151957e415eff793e3d054050526b7d6892d28d4
2015-02-24use by-ref iteration, omit pointless std::move() and add missing inlineBjoern Michaelsen1-5/+5
Change-Id: I45081f5f80c4a571af0abebd23a4fed6623498a0
2015-02-23use init lists for property sequencesBjoern Michaelsen1-0/+40
Change-Id: I8b3b2b839c37b584e1a4036e49af7ff2737ea7f6
2015-02-18boost->stdCaolán McNamara2-9/+5
Change-Id: Ifa87783f68b0fab98f8a0f7cd6ed867202b4532f
2015-02-17boost->stdCaolán McNamara1-13/+15
Change-Id: I8371b942d915f777a29ca01cd0aed674db0ca853
2015-02-16another dependency still requiredCaolán McNamara1-12/+32
Change-Id: I0f0ce96ee8209f711739952422d642a012252d1f
2015-02-16boost->stdCaolán McNamara4-10/+16
Change-Id: I44b208a2c5c5bf73ac025462c9f7bd499ed0a49b
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara4-23/+16
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-12these can all be made constCaolán McNamara1-1/+1
Change-Id: I6a8af82e8612196f20143f4997eb95c80a2ca13d
2015-02-07loplugin:deletedspecialStephan Bergmann9-49/+37
Change-Id: I0aeba0c65b19c1107f617ed0af0028cced9bd434
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage2-1/+4
Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
2015-02-06shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara1-11/+11
and boost:make_shared->std::make_shared Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
2015-01-30coverity#1267689 Uncaught exceptionCaolán McNamara1-1/+2
Change-Id: I9286332d74c234007556a7f1d5193197ce547652
2015-01-28Use vector::dataStephan Bergmann1-1/+1
...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-26followup code removal after changing virtual methods to non-virtualNoel Grandin1-9/+9
This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin5-18/+18
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-22SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVMStephan Bergmann1-1/+1
The Itanium C++ ABI mandates that for a unique (complete) C++ type a single unique symbol for the type's RTTI name is used across a process's dynamic objects (so type equivalence can be determined via pointer comparison on the RTTI names). GCC nowadays deviates from that, using strcmp to determine equivalence, so it is resilient to RTTI names being bound locally within dynamic objects (which has performance benefits, but also makes it impossible to have unrelated types that happen to have the same name "encapsulated" in individual dynamic objects--- whether or not that would violate the ODR would be open to interpretation of how dynamic objects fit into the C++ Standard). LLVM sticks to the Itanium ABI, which becomes notable in at least two places: For one, libc++abi's __dynamic_cast uses strict checking. It still has a _LIBCXX_DYNAMIC_FALLBACK for now that additionally uses strcmp checking and syslogs visibility violations. Mac OS X uses libc++abi with _LIBCXX_DYNAMIC_FALLBACK enabled, and running LO routinely logs dynamic_cast errors to the Console there. For another, RTTI-based UBSan checks unconditionally only use strict checking (cf. isDerivedFromAtOffset in lib/ubsan/ubsan_type_hash.cc). This causes false positives from Clang -fsanitize=function and -fsanitize=vptr even on Linux not using libc++abi. Therefore, introduce SAL_DLLPUBLIC_RTTI to mark types for which RTTI needs to have default visibility under the Itanium/LLVM semantics. There is unfortunately no way to mark only the (implicitly generated) RTTI symbols for default visibility, but at least with the cases where SAL_DLLPUBLIC_RTTI is used for now that is no real problem---any class type marked SAL_DLLPUBLIC_RTTI only has inline (covered by -fvisibility-inlines-hidden) or undefined pure virtual functions. It appears that even the vtables of those classes remain hidden, at least with Mach-O on Mac OS X. (That also means there is no need for a SAL_DLLPRIVATE_RTTI marker analoguous to the---also superfluous in retrospect--- CPPU_GCC_DLLPRIVATE one.) Nevertheless, the number of exported symbols of course increases when SAL_DLLPUBLIC_RTTI is "active." For a full-blown --enable-dbgutil build on Mac OS X, find instdir/LibreOffice.app/Contents -name \*.dylib\* -exec nm -gU {} \; \ wc -l increased from 125541 to 139239. For Linux, an option might be to "activate" SAL_DLLPUBLIC_RTTI only for __clang__ plus !ENABLE_RUNTIME_OPTIMIZATIONS. The set of types marked SAL_DLLPUBLIC_RTTI with this patch (wholesale cppumaker- generated UNO enum, struct, and interface types; plus some IEmbeddedHelper and IUndoManager) is chosen so that a full "make check" on Mac OS X no longer syslogs any dynamic_cast errors to the Console. Change-Id: I42fa6ec01c2503ec24bcd9c0518abb112afa3235
2015-01-20Drop unused comphelper::service_decl::component_getFactoryHelper paramsStephan Bergmann1-10/+2
Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
2015-01-20Some more loplugin:cstylecast: comphelperStephan Bergmann1-1/+1
Change-Id: I6d3ffb195a7c9a3c44744d296fb9d9eca00115cd
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl2-2/+2
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin2-24/+0
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-06boost::math::nextafter->std::nextafterCaolán McNamara1-1/+1
Change-Id: I868b3fcf367e61c40e77e64bcc153b2a2feefa0b
2015-01-05I assume this class is not public due to an oversightDavid Tardon1-1/+1
Change-Id: If43e49dc05ad213cbbf6363dfa68a7a93959582f
2015-01-02Remove unnecessary comphelper::string::getTokenStephan Bergmann1-32/+0
Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
2014-12-27boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara3-9/+9
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-18comphelper: Use appropriate OUString functions on string constantsStephan Bergmann2-17/+9
Change-Id: Id1d5c3cf2f76dbb33606cec1c0f17d4a1f282247
2014-12-18fix typoTakeshi Abe1-1/+1
Change-Id: I3a1ae61f1d6aff3129937dbf584eaec6b7f002b8
2014-12-05Remove dead SO3_GLOBAL_CLASSID and SvObjectStephan Bergmann1-4/+0
Change-Id: I57c1c4bf6482be7c3cf13c424972d4ed3b9a6b62
2014-12-03From ill-named comphelper::getExpandedFilePath to comphelper::getExpanedUriStephan Bergmann2-36/+41
Change-Id: I749d78d115f641b2ac18cd6eb483c69a22ee210c
2014-11-19comphelper::SequenceAsHashMap: throw IllegalArgumentExceptionStephan Bergmann1-3/+2
...instead of IllegalTypeException (where the latter is not a RuntimeException). Fixes cid#707218, cid#1224993, etc., and reverts previous fix 358f5280e0f6afb968edc295d8f1dce55f05e18f "Fix coverity#1224993 w/o breaking JunitTest_framework_unoapi." Change-Id: I13ce153e1513749fb0be2ee8e560cec86a30c5ba
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini3-3/+3
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>