summaryrefslogtreecommitdiffstats
path: root/comphelper
Commit message (Collapse)AuthorAgeFilesLines
* Typo: namesapce(s)->namespace(s)Julien Nabet2016-02-171-1/+1
| | | | Change-Id: Ic7c14c2e39a5ade1f5622a8350f9197d84cf9cc8
* use consistent #define checks for the Windows platformNoel Grandin2016-02-171-1/+1
| | | | | | | | | | | | stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* [API CHANGE] add operator==/!= to UNO structsNoel Grandin2016-02-111-21/+0
| | | | | | | | | this is useful now that we are storing UNO structs in std::vector Change-Id: Ic558bcd669bd2b3cdf9eb8393269eb906ac52369 Reviewed-on: https://gerrit.libreoffice.org/22257 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* sequence->vector in OFOPXMLHelper_ImplNoel Grandin2016-02-091-19/+15
| | | | | | | Change-Id: I6c5806fefc57d82124652ecbb5bfa8e109f9a255 Reviewed-on: https://gerrit.libreoffice.org/22181 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* sequence->vector in OPropertyChangeMultiplexerNoel Grandin2016-02-091-5/+3
| | | | | | | Change-Id: I4daa06fe14971ae34e089620ba07818d998764f0 Reviewed-on: https://gerrit.libreoffice.org/22179 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Remove excess newlinesChris Sherlock2016-02-0931-96/+0
| | | | | | | | | | | | | | | | | | | A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
* sequence->vector in OPropertyArrayAggregationHelperNoel Grandin2016-02-091-98/+23
| | | | | | | Change-Id: Ib6ad60495736ea6da4612d3e7591b514465069a2 Reviewed-on: https://gerrit.libreoffice.org/22180 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* sequence->vector in PropertyMapImplNoel Grandin2016-02-091-16/+16
| | | | | | | Change-Id: Id42d6d739f402c725325816c506caa369267ec8e Reviewed-on: https://gerrit.libreoffice.org/22178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:unusedmethodsNoel Grandin2016-02-083-127/+0
| | | | | | | | | | | | | | | using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* sax: Use comphelper's AttributeListMatúš Kukan2016-02-061-6/+8
| | | | Change-Id: I6eb0115dba8797025a513cf1e6cfbfbe0b6f7e50
* boost::hash->std::hashNoel Grandin2016-02-021-1/+0
| | | | | | | Change-Id: If4d1e4071995f07212fad958b0226d5824d168f8 Reviewed-on: https://gerrit.libreoffice.org/21989 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* tdf#74608 comphelper: Constructor feature for AnyCompareFactorykripton2016-02-014-29/+8
| | | | | | | Change-Id: If5d35828a7309b6916de65282e32ce1ad459a15f Reviewed-on: https://gerrit.libreoffice.org/21936 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#74608 comphelper: Constructor feature for NamedPropertyValuesContainerkripton2016-01-314-30/+8
| | | | | | | Change-Id: I63390eca5c887bfd84846655cef6339ba9785e24 Reviewed-on: https://gerrit.libreoffice.org/21888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
* OSL_THIS_FUNC is a rip-off of BOOST_CURRENT_FUNCTION so we can use thatCaolán McNamara2016-01-313-8/+2
| | | | | | | | | | as a direct drop in I guess Change-Id: I3add63f1459f4e659019bd6db54da2f5431958ce Reviewed-on: https://gerrit.libreoffice.org/21941 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#74608 comphelper: Constructor feature for IndexedPropertyValuesContainerkripton2016-01-304-31/+8
| | | | | | | Change-Id: I0e9ea9e4c750918b33040dad2279fe55facd4cab Reviewed-on: https://gerrit.libreoffice.org/21858 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matúš Kukan <matus@libreoffice.org>
* sequence->vector in OInteractionRequestNoel Grandin2016-01-291-5/+3
| | | | Change-Id: I995cb96e514e1aaa05a96f29344ef51e4ca83c64
* sequence->vector in OSimpleLogRingNoel Grandin2016-01-292-5/+6
| | | | Change-Id: Ief35ce33a11c93a4a78e50ccdd936ec7e17102a2
* sequence->vector in AttachedObject_ImplNoel Grandin2016-01-291-15/+9
| | | | Change-Id: I457de7e83554fbea0a9c5a50c628664fa3887df4
* cleanup OInterfaceContainer2 unit testsNoel Grandin2016-01-252-85/+34
| | | | | | | remove unused code and actually hook up the tests in testifcontainer.cxx Change-Id: I9694ebe44f1e8eed3d72373d62424345f899c8e6
* loplugin:overrideStephan Bergmann2016-01-251-2/+2
| | | | Change-Id: I9a67ed46a67be521d00ed2368b4820737dcb15e5
* loplugin:cstylecastStephan Bergmann2016-01-251-6/+6
| | | | Change-Id: Ie2aeedac1b3fd90d6302be6e5917e99a782d76c7
* InterfaceContainer2 with vector instead of SequenceNoel Grandin2016-01-2513-21/+715
| | | | | | | | | | create an InterfaceContainer2 class to replace InterfaceContainer. It uses a std::vector instead of a Sequence for the mutable listener list, which provides far better performance. Switch all our internal use-sites to the new class. Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
* tdf#97108: SwDocShell of clipboard document has no base URLMichael Stahl2016-01-131-1/+2
| | | | | | | | | ... which triggers this assert; have to downgrade it to SAL_INFO. The startsWith("0x") check is obsolete anyway since commit 0f02bc189b6e89ca2e62d4bd6a2f407a9fd4ec3b. Change-Id: If47bc4496852ff85ba1bbeb4205ffc16be0782de
* loplugin:unusedmethods unused return value in comphelperNoel Grandin2016-01-112-5/+3
| | | | Change-Id: If95e3fa61a2c63c4ffc78ef5c27ea5c59088170d
* crashtesting: fdo85994-1.doc assert on reexport to docCaolán McNamara2016-01-091-5/+11
| | | | | | | try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: I1a660ff6e4874321e0308d556c7ce0e10a2605fe
* Fix typosAndrea Gelmini2016-01-075-7/+7
| | | | | | | Change-Id: I90b04b8eda6fc3d530c9db72052720cbe9de0343 Reviewed-on: https://gerrit.libreoffice.org/21197 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* new loplugin rangedforcopy - use reference in range based forAndrzej Hunt2016-01-051-1/+1
| | | | | | | | | Inspired by 6e6ae9803796b120e95f6e89575e03c5fd0ed3c2 Change-Id: Ia0f264d3a6bbf076aa5080e3398683e50bc6ef01 Reviewed-on: https://gerrit.libreoffice.org/20190 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#74608: Constructor function for OfficeInstallationDirectories singletonMatúš Kukan2015-12-275-63/+33
| | | | Change-Id: Ia0de503c50b6b1d568df27f6a8139fdcc8d0cfbf
* tdf#74608: Constructor function for OfficeRestartManager singletonMatúš Kukan2015-12-275-45/+29
| | | | Change-Id: I6c1383c292418b6744dacee95d4f289a6ca1c781
* crashtesting: fdo73974-1.doc assert on reexport to docCaolán McNamara2015-12-241-2/+7
| | | | | | | try setting DefaultParentBaseURL based on the parent BaseURL for objects created this way Change-Id: Idfc44d90e4f73f23976e8648c504786955b4fce6
* OModule::onFirstClient is unusedNoel Grandin2015-12-241-9/+4
| | | | | | | | | | | also move the MutexGuard in revokeClient. No need to hold it while doing an osl_atomic_increment. Save it until we actually need to call onLastClient. Change-Id: Ia87f24b66b0430604a2fe717c95223ff1f5ece6d Reviewed-on: https://gerrit.libreoffice.org/20919 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:unusedfields in chart2Noel Grandin2015-12-233-9/+5
| | | | Change-Id: I8203f84ad8b138932c990032e17ea5d2daf384bb
* loplugin:unusedmethodsNoel Grandin2015-12-217-64/+0
| | | | Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
* sw: set a BaseURL when copying embedded objectsMichael Stahl2015-12-151-1/+2
| | | | | | | | | Turns out that SfxObjectShell::CreateShellID() will produce the SfxMedium's base URL if it exists, so EmbeddedObjectContainer::CopyAndGetEmbeddedObject() already has parameters, sw just needs to set them. Change-Id: I36cedfde4e7c2e25c43c66a30d8ca572f099ad69
* fix missing BaseURL when loading embedded objectsMichael Stahl2015-12-151-6/+18
| | | | | | | | | | | | | | | | | | | | When the object is edited in the UI, the m_xClient is set to a SfxInPlaceClient and the DocumentBaseURL is retrieved from it. But if the object is not edited, it will be loaded during export via the API and without a m_xClient; in this case the DocumentBaseURL must have been set previously to be available during import. There appears to be no way to get the URL of the document via the API while it is being imported; SfxBaseModel's m_sURL is unfortunately only initialized from SfxObjectShell::FinishedLoading(). During ODF import, the SvXMLEmbeddedObjectHelper creates the embedded object, so let's make it pass in the parent's BaseURL. The "DefaultParentBaseURL" parameter already exists but was unused previously. Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733
* That SB variable was a temporary debugging aidStephan Bergmann2015-11-261-2/+4
| | | | | | | ...inadvertently checked in with 7bcf64c29a0f5d3d2d60fe98afadab6e48dbe8b3 "Add isReadOnly() support to simplified configuration access" Change-Id: I9b8b477f682605fcdcf65f8e1255524d010495be
* mark UNO structs as SAL_WARN_UNUSED, where possibleNoel Grandin2015-11-261-5/+2
| | | | Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
* loplugin:unusedfields in include/comphelper,include/editengNoel Grandin2015-11-241-1/+1
| | | | Change-Id: I619c2cf1765df97159fc52ee84e0e9e8d16a22fe
* Seems more natural to pass a homogenous list by initializer_listStephan Bergmann2015-11-202-50/+14
| | | | | | | ...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
* loplugin:unusedfields in comphelperNoel Grandin2015-11-201-3/+0
| | | | Change-Id: I2e410c973af2eb443fee8fe787920bf6bc205d95
* loplugin:sallogareasStephan Bergmann2015-11-201-1/+1
| | | | Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
* add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin2015-11-204-33/+7
| | | | | | | | | and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use comphelper::containerToSequenceNoel Grandin2015-11-191-3/+2
| | | | | | in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-177/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* use initialiser for Sequence<OUString>Noel Grandin2015-11-155-10/+5
| | | | | | | | | | | | | replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* use initialiser syntax for Sequence<OUString>Noel Grandin2015-11-153-6/+3
| | | | | | | | | | | | | | replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Namespace cleanup and disambiguationAshod Nakashian2015-11-122-51/+50
| | | | | | | | Change-Id: Ib6d2f8b4e71436c3a7c26bdfc9847152ebaf0739 Reviewed-on: https://gerrit.libreoffice.org/19900 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1033-118/+118
| | | | Change-Id: Ibd0e6ae5e3243464b2484a009f2b4781bdaac471
* new loplugin: oncevarNoel Grandin2015-11-091-12/+6
| | | | | | | Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Cleanup two unused boost/bind includes in comphelper.Mario J. Rugiero2015-11-092-2/+0
| | | | | | | Change-Id: I8bfbbc82be3a91d7227ff76fc6eb570c1155dd4f Reviewed-on: https://gerrit.libreoffice.org/19844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>