summaryrefslogtreecommitdiffstats
path: root/comphelper
Commit message (Collapse)AuthorAgeFilesLines
* include time.h for timeCaolán McNamara2015-01-061-0/+1
| | | | Change-Id: Id2fbc93fb99cd97473298e127dd5a3d82f22e438
* boost::random->std::randomCaolán McNamara2015-01-061-10/+11
| | | | Change-Id: I1b823b6c17b731e427bff88c6fff7897f66ddb5c
* Remove unnecessary comphelper::string::getTokenStephan Bergmann2015-01-021-5/+5
| | | | Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
* boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara2014-12-274-10/+6
| | | | Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
* comphelper: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-122-3/+2
| | | | Change-Id: Ia09f122d4d968318fc0208b64b9bf7a0bc131f8a
* java: reduce visibility of fields and methodsNoel Grandin2014-12-111-1/+1
| | | | | | | | | found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* java: simplify the getMSF() methodsNoel Grandin2014-12-102-4/+2
| | | | | | | Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: remove some comment noiseNoel Grandin2014-12-102-2/+3
| | | | | | | Change-Id: I4d15a0e606f468346bc5d2f43af2e14bcc758e13 Reviewed-on: https://gerrit.libreoffice.org/13405 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* From ill-named comphelper::getExpandedFilePath to comphelper::getExpanedUriStephan Bergmann2014-12-033-42/+33
| | | | Change-Id: I749d78d115f641b2ac18cd6eb483c69a22ee210c
* comphelper::SequenceAsHashMap: throw IllegalArgumentExceptionStephan Bergmann2014-11-191-8/+15
| | | | | | | | | ...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
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-1711-0/+18
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* Some more compareVersionStrings() testsTor Lillqvist2014-11-141-0/+4
| | | | Change-Id: I5b9dc45352afd63dae4c3952d9647e6e3ec98ef4
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-142-2/+2
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-122-2/+2
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Add a function to compare version number stringsTor Lillqvist2014-11-113-0/+111
| | | | Change-Id: I88d3d9040f70e84752ade19001a699f60e9e7636
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-052-19/+10
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* thread-pool: Initialize empty pools to start complete.Matúš Kukan2014-11-041-1/+1
| | | | | | Otherwise waiting for completion if we push no work hangs. Change-Id: I7103bdb779eb66a65cd8496091e72a0c65eb3567
* thread-pool: fix waiting until all tasks are complete.Michael Meeks2014-10-311-6/+34
| | | | Change-Id: Iaf5a3bf28879f229a223a8760fd878f96958a53c
* thread-pool: re-work termination semantics to avoid problems.Michael Meeks2014-10-301-5/+2
| | | | | | | We want a pre-spun-up, shared thread-pool that doesn't get its workers created & joined frequently. Change-Id: I29081e3a3e3849ca30e63fd080ee3315d99cbe8d
* Move thread-pool down into comphelper for re-use elsewhere.Michael Meeks2014-10-302-0/+186
| | | | Change-Id: Ib27b8b1ccc07ff194035d6c2ef3d45c429e3cea1
* remove unnecessary 'using namespace rtl' declarationsNoel Grandin2014-10-291-1/+0
| | | | | | | | | It turns out that almost none of them were necessary. Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83 Reviewed-on: https://gerrit.libreoffice.org/12133 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Revert recent changes to comphelper::OSequenceOutputStreamMatúš Kukan2014-10-231-17/+17
| | | | | | | | | | | | | | Some of the changes could be wrong and we don't need them. This reverts commit 784d4bea86d8cbb3a855e557c465ce50a049cefc. This reverts commit 8524d5aba59148eef94859289f00ab6477e0e821. This reverts commit 018f1deae884febbbe639c7ee46b45ce4807e9d3. This reverts commit 8124fddc5803b4e104d4fc2456cb92cb030d9436. We use our own helper cache class in FastSaxSerializer since f736eba5a9df8645849a37b08d2764a5f495ab45. Change-Id: Iaca6b5b11cb32595db4420a02fa72b0007cf6286
* FastSerializer: Avoid sequences where possibleMatúš Kukan2014-10-231-9/+14
| | | | Change-Id: I359ca9d3b766b71904e4199ebfbdbd5b203775cc
* FastSerializer: Do not keep whole sequence in memory; write in chunksMatúš Kukan2014-10-231-0/+2
| | | | Change-Id: Ibca65a2b8397358ac4013c8e5b53389ac6949e4d
* Remove mutex from OSequenceOutputStream; it's intended to be fastMatúš Kukan2014-10-231-8/+1
| | | | | | | Make the caller responsible for using it wisely. AFAICS it's used only in FastSaxSerializer, so far. Change-Id: I50d48fd7f3e6cdeb9e4637868da213b8171e542b
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-152-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* coverity#706285 Uncaught exceptionCaolán McNamara2014-10-101-4/+15
| | | | Change-Id: I6d7227a0614042f7a65520fc79b31afa3d7ca744
* coverity#706284 Uncaught exceptionCaolán McNamara2014-10-101-1/+1
| | | | Change-Id: I748d34fd7f56b1c9c739f15fbb596932484195a4
* coverity#706275 Uncaught exceptionCaolán McNamara2014-10-101-5/+12
| | | | Change-Id: I538cca9505411e8984ba821807c0072c0ce40e7b
* coverity#1242878 Unused valueCaolán McNamara2014-10-101-1/+1
| | | | Change-Id: I85bc3fffb2d350a13aeb30c75f0c2d0a7bc5e7a3
* Revert "coverity#1224993 Uncaught exception"Stephan Bergmann2014-10-091-4/+9
| | | | | | | This reverts commit b66a96d792e9ef8022547f835ed4633c8e7f4c10, follow-up commit will fix w/o breaking JunitTest_framework_unoapi. Change-Id: Iac12d52c2eb9a1e4ab09d24910cee1838cc7d883
* coverity#1224993 Uncaught exceptionCaolán McNamara2014-10-081-9/+4
| | | | Change-Id: If5dcb4bbd728f7396e19382f85bdf2a3d77a6db6
* coverity#706283 Uncaught exceptionCaolán McNamara2014-10-082-4/+2
| | | | Change-Id: I2c3f10894ffe514dbc71cd1dd672685aa8f09a0d
* disambiguate uniform_int_distributionCaolán McNamara2014-10-071-6/+2
| | | | Change-Id: Ifa0c1b1983d1cc7f22d55b15dee88b7f709dbcf8
* I shouldn't be shy, just assert()Tor Lillqvist2014-10-071-3/+1
| | | | | | Stephan dislikes "defensive programming" and I trust him. Change-Id: Ic4864de98a5155129179eb89873f3ffdc8921614
* Handle incorrect usage of uniform_real_distribution()Tor Lillqvist2014-10-071-0/+3
| | | | | | | | | uniform_real_distribution(a,b) should be called with a < b, otherwise the result is undefined. Currently, when called with both zero, it gets stuck in a loop. Not sure if a blunt assert() would be the right thing here, so I just return a if a >= b. Change-Id: I769688c7192bd02bad24ad597948984db56dd4fc
* when size_t == unsigned intCaolán McNamara2014-10-061-0/+4
| | | | Change-Id: If8cd3632d69f6456b0e1351efac0e428e0093e3b
* use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara2014-10-061-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
* coverity#1242878 Unused valueCaolán McNamara2014-10-021-1/+1
| | | | Change-Id: I123855003be3eb5ef6494cda8f42b4daeba1c272
* comphelper: std::auto_ptr -> std::unique_ptrStephan Bergmann2014-09-254-17/+16
| | | | Change-Id: I364d6252f470dcc6d71a191f1249e95ca1f284ce
* loplugin: cstylecastNoel Grandin2014-09-224-9/+9
| | | | Change-Id: I84873c9f84651dc8a1337f37c63020b461314e1b
* create a master document template typeCaolán McNamara2014-09-111-0/+1
| | | | | | | | | | | | | | | | | of application/vnd.oasis.opendocument.text-master-template with suffic otm https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html desktop/icons/oasis-master-document-template.icns is just a copy of desktop/icons/oasis-master-document.icns because I can't draw Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1 Reviewed-on: https://gerrit.libreoffice.org/11350 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* coverity#706466 Uncaught exceptionCaolán McNamara2014-08-302-5/+0
| | | | | | | | and coverity#706463 Uncaught exception Change-Id: I77cb09054f00d86cd3e206e44ef4942ddf148a7f
* stario -> css::ioThomas Arnhold2014-08-213-41/+41
| | | | Change-Id: Iad96e0a2bfd6c126c696f14919dbfd8e072dd230
* starcontainer -> css::containerThomas Arnhold2014-08-211-9/+9
| | | | Change-Id: Ie6e75483aa4262a5f66a4c557015af8b3c02d592
* starawt -> css::awtThomas Arnhold2014-08-211-3/+3
| | | | Change-Id: I76dd16aa2c42a649162ea2e37c824af30cdd557b
* comphelper: starbeans -> css::beansThomas Arnhold2014-08-211-6/+2
| | | | Change-Id: Iedfc4460194f179b20d734cb7671894213c77008
* comphelper: starutil -> css::utilThomas Arnhold2014-08-211-10/+10
| | | | Change-Id: If4c0d404b0f7027837dcc245b5b7d21b1f749347
* comphelper: starlang -> css::langThomas Arnhold2014-08-213-12/+11
| | | | Change-Id: Ie8adb5b81df51fd973cbb786f27ea3ef1462679c
* comphelper: staruno -> css::unoThomas Arnhold2014-08-216-81/+81
| | | | Change-Id: I21991280c5b7e4c6d0c200f4489c89a9f4fbc385