summaryrefslogtreecommitdiffstats
path: root/cppuhelper
Commit message (Collapse)AuthorAgeFilesLines
* Work around clang-cl PR25641Stephan Bergmann2015-11-282-1/+3
| | | | | | | | | | "defaultbootstrap.o : error LNK2001: unresolved external symbol '[thunk]:private: virtual class com::sun::star::uno::Sequence<class rtl::OUString> __cdecl cppuhelper::ServiceManager::getAvailableServiceNames`adjustor{24}' (void)' (?getAvailableServiceNames@ServiceManager@cppuhelper@@GBI@EAA?AV?$Sequence@VOUString@rtl@@@uno@star@sun@com@@XZ)" Change-Id: I04b7353305ffeeb316d70ab8408aeb52ea0f7186
* loplugin:overrideStephan Bergmann2015-11-201-3/+3
| | | | Change-Id: Ic89d255bf56234a82b23ad6cc36d8d1250acbcab
* cppuhelper: enable CppunitTest_cppuhelper_qa_weakMichael Stahl2015-11-191-0/+4
| | | | Change-Id: Ie2339b31b1a2293183a29defb8a4944cb9eb61a8
* use initialiser list for Sequence<OUString>Noel Grandin2015-11-161-4/+3
| | | | | | | Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-95/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-153-6/+3
| | | | | | | | | | | | using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Bogus assertStephan Bergmann2015-11-131-10/+12
| | | | | | | | | | | implementation can indeed be empty when cppu::writeSharedLibComponentInfo calls getEnvironmentFromModule(mod, curEnv, "", ""), which in the final if-branch calls getEnvironment with implementation = "". Happens when adding desktop/qa's test-active.oxt. Regression introduced with ae3a0c8da50b36db395984637f5ad74d3b4887bc "Add .component <implementation constructor='...' feature." Change-Id: Ia70958e4aa18d378ff35063bdf6187f6e073b765
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-1022-144/+144
| | | | Change-Id: I62a63915dfc0bced2cd8ffe3999cbde5c4d97b0b
* yyyyyNoel Grandin2015-11-041-5/+4
| | | | Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
* tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni2015-11-021-6/+6
| | | | | Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
* use uno::Reference::set method instead of assignmentNoel Grandin2015-10-303-7/+5
| | | | Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
* remove some useless commentsNoel Grandin2015-10-131-2/+2
| | | | | | found with git grep '// /' Change-Id: I948cf9ae61bbbf2ec706ca5b0572c4f27c58c745
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1213-258/+258
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* clang-analyzer-deadcode.DeadStoresStephan Bergmann2015-10-051-2/+2
| | | | Change-Id: Ib1163c1717e61d730b22c3d6d0a0a7cc171bba4e
* Fix typosAndrea Gelmini2015-09-302-2/+2
| | | | | | | Change-Id: I13c3dc33722f139582f27412d5d336264d3d15a3 Reviewed-on: https://gerrit.libreoffice.org/18942 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* boost->stdCaolán McNamara2015-09-143-36/+32
| | | | | | | | Change-Id: I3fd9e1599c5ad812879a58cf1dabbcd393105e1c Reviewed-on: https://gerrit.libreoffice.org/18564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* tdf#84323: Make osl::Thread::wait more readableStephan Bergmann2015-08-171-2/+2
| | | | | | | Change-Id: I33eb6970050a103404344c7f16dd33349c154347 Reviewed-on: https://gerrit.libreoffice.org/15018 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* com::sun::star-css in cppu,cppuhelperNoel Grandin2015-07-2912-147/+147
| | | | | | | Change-Id: I84a412f587fd66f6c0610f083e61cf0fa079d4d9 Reviewed-on: https://gerrit.libreoffice.org/17384 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-07-081-1/+1
| | | | | | | Change-Id: I70b03c152f63e48341dc5629a99b0eeab7b497c0 Reviewed-on: https://gerrit.libreoffice.org/16834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* Fix typosAndrea Gelmini2015-07-031-1/+1
| | | | | | | Change-Id: Ideb5688a8c9e7cf10038f2e9d00991e8653b1875 Reviewed-on: https://gerrit.libreoffice.org/16706 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* Revert "return and use std::vector from OInterfaceContainerHelper"Noel Grandin2015-06-293-60/+73
| | | | This reverts commit e57314f61f67b093510c5a8a8f34a62126ba8734.
* return and use std::vector from OInterfaceContainerHelperNoel Grandin2015-06-293-73/+60
| | | | | | | | | | since most of the time we don’t need a heavyweight uno::Sequence. Adds a new method getElementsAsVector(). Change-Id: I9e72bef0c0c723ffd0dd7d4152db5baec6784a7a Reviewed-on: https://gerrit.libreoffice.org/15747 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: Flag more inefficienciesStephan Bergmann2015-06-251-2/+1
| | | | Change-Id: I5fe4002c3c0065dfe93be0d8f47df90d57af898b
* Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2015-06-175-14/+14
| | | | | | | | | | | | | | | | | | | | | | This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* cppcheck: noExplicitConstructorCaolán McNamara2015-06-0910-17/+18
| | | | Change-Id: Ic33ee6936f40bec4f3a82aea39a180ae6e9a0928
* loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann2015-06-083-8/+8
| | | | Change-Id: I4eea017d429945cdd8636c0f06cb18f5887a0d78
* tdf#62475: partial handmade fixesAndrea Gelmini2015-05-151-4/+0
| | | | | | | Change-Id: Ib9af202c43b916b9af4b4e18db35d470a8692fe4 Reviewed-on: https://gerrit.libreoffice.org/15712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* cppuhelper: Allow logging the used services / constructors.Jan Holesovsky2015-05-021-0/+2
| | | | Change-Id: I9090561032e2f6e97eb74b8f1e8cd1698171e6ea
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-225-0/+5
| | | | | | | | | | | | | | rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-156-22/+22
| | | | | | | | | | | | | | | | ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
* convert RegError to scoped enumNoel Grandin2015-04-091-12/+12
| | | | Change-Id: I55977c38578cb59deb195d91f8948da2e0905b6a
* convert RegValueType to scoped enumNoel Grandin2015-04-091-1/+1
| | | | Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
* convert REG_ constants to scoped enumNoel Grandin2015-04-091-1/+1
| | | | Change-Id: I11d92218c5e0678d497f8964723033e2bd8b3300
* Add support for cppu::UnoType<void>Stephan Bergmann2015-04-011-1/+1
| | | | Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-0111-80/+73
| | | | Change-Id: I620bf5d46c19f0182e822265eadf8eb11001855e
* Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2015-03-314-8/+8
| | | | Change-Id: I0392b2fc9e48aab4a20849d8203cae96b1ef2d2c
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-285-52/+52
| | | | Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
* loplugin:staticfunctionNoel Grandin2015-03-271-2/+2
| | | | Change-Id: Id796b799f8e2fcc3eae98d43800c5e31fec27fef
* TyposJulien Nabet2015-03-251-15/+15
| | | | Change-Id: I665a56fcad10e136e949a10497f6ab8813af9968
* Typo: constarined->constrainedJulien Nabet2015-03-151-1/+1
| | | | Change-Id: I3326843195e6a3b030409ac3b20bbea55e739366
* CppCheck cleanlyness : reduce variable's scopeMichaël Lefèvre2015-03-121-3/+2
| | | | | | | Change-Id: I5bd18b1a93f7197121eb42f6b82d2d8d87e7671f Reviewed-on: https://gerrit.libreoffice.org/14843 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* TyposJulien Nabet2015-02-181-3/+3
| | | | Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
* Updated all precompiled headers.Ashod Nakashian2015-02-051-0/+3
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Use vector::dataStephan Bergmann2015-01-281-2/+2
| | | | | | | ...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
* Get rid of std::auto_ptr in stable URE interfaceStephan Bergmann2015-01-272-41/+35
| | | | | | | | | | | | | | | | ...the deprecation-warning noise is getting ever louder, and eventually auto_ptr will just disappear. Just surrender and use good-old plain pointer and deletion in dtor---it's probably the best to do in this stable interface. The change is backwards compatible. For one, in all relevant standard libraries (libstdc++, even in debug mode; libc++; msvcrt) sizeof(auto_ptr<T>) equals sizeof(T*). And for another, the removed UnoUrlDescriptor ctor was only called from within cppuhelper and had deliberately been left out of cppuhelper/source/gcc3.map (so isn't exported at least on Linux)---marking it SAL_DLLPRIVATE had probably just been forgotten when retrofitting cppuhelper with CPPUHELPER_DLLPUBLIC annotations. Change-Id: Ic8bce29d93938f2b2e0a264baee85132668e1294
* coverity#1266445 Explicit null dereferencedCaolán McNamara2015-01-251-5/+7
| | | | Change-Id: I2d62d6972d085fe818ec6767a0660afb010bece8
* Some more loplugin:cstylecast: cppuhelperStephan Bergmann2015-01-203-7/+7
| | | | Change-Id: Ifc11a0ea20a4eec40544cd931d0f94e0db3e3288
* Variadic cppu::WeakComponentImplHelperStephan Bergmann2015-01-161-5/+4
| | | | Change-Id: I79371b4ad9d29a5ab8fd01244c3f80db92b07f97
* Fix getTypes() of OPropertySetHelper and derivedStephan Bergmann2015-01-161-6/+4
| | | | | | | ...broken with 60d60caf99a40ca0c3891bf230c5a1fdbae5f49c "Renamed XPropertySet2 to XPropertySetOption" et al Change-Id: I684736ffafc4642548b7c24171cc52c1acb32252
* -Werror=array-boundsStephan Bergmann2015-01-071-2/+1
| | | | Change-Id: I6766ccc5e760b34a4e276c1322745533a00131fa