summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)Author
2015-01-05java: remove dead codeNoel Grandin
found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
2015-01-04cppcheck: Possible inefficient checking for <var> emptinessJulien Nabet
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
2015-01-02can't have an unordered_map of const OUStrings with gcc 4.8.2Caolán McNamara
Change-Id: I2527088fec51e597c406077e459969359a0ab28e
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-18Build fix for gcc 4.7.Kohei Yoshida
Change-Id: I9b971928fa2737d21c225406bf2a86c088be5b9c
2014-12-18unotools: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I9762f913080b4bad0d9cd3d1c1b42b333b08f27e
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-12unotools: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I14d3a3187b8528e3ff9743245b869773c2eb5e98
2014-12-11java: reduce visibility of fields and methodsNoel Grandin
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>
2014-12-10This shall apparently check that aScheme is neither http nor httpsStephan Bergmann
...introduced when https was added in c21b8a1620808865d03239256221a6a86e6316f0 "INTEGRATION: CWS tkr05_SRC680: #31053# HTTPS WebDAV support" Change-Id: Id7c361a078008d66391771f26b9c35999404091f
2014-12-10java: simplify the getMSF() methodsNoel Grandin
Change-Id: Ib459799f4a3224f8c9683ac4b6cf37982d2077a3 Reviewed-on: https://gerrit.libreoffice.org/13406 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10java: remove some comment noiseNoel Grandin
Change-Id: I4d15a0e606f468346bc5d2f43af2e14bcc758e13 Reviewed-on: https://gerrit.libreoffice.org/13405 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10java: the TempFileTest interface is unnecessaryNoel Grandin
Change-Id: Ic49f95117b54929f95984aff0f69e47b90daee7c Reviewed-on: https://gerrit.libreoffice.org/13404 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-03Further clean-upStephan Bergmann
Change-Id: I20049b482c831e4ac2221fddfe80deb9847e72c3
2014-12-03Code clean-up/consolidation task.Vishv Brahmbhatt
Removing the duplicate code,and consolidating changes by using method "getExpandedFilePath" of comphelper. Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: adapted to recent change from comphelper::getExpandedFilePath to comphelper::getExpandedUri; fixed the two changes in framework to actually modify the by--non-const--ref argument; fixed a loplugin:unreffun. More clean-up to follow. Change-Id: Ie8875bcb61b616385bd64151f0a915bf7cce04e5
2014-11-24unotools: Internalize ucblockbytes.hxx headerMatúš Kukan
Change-Id: I1a9b795eda832673a83a426c8bf10d5bb9c28581
2014-11-24java: unused local varsNoel Grandin
Change-Id: Ib0709da830788f8169282e45552af4fdc300ccf9 Reviewed-on: https://gerrit.libreoffice.org/13096 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-22Cleanup some whitespace when I'm touching this code anyway.Jan Holesovsky
Change-Id: Id8e19749050f58837715f717983cb2acbcf9318a
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
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
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-09Related: fdo#80755 Always update the thumbnailMaxim Monastirsky
Even if the new one is empty. That's the most simple solution for a case of retro-password protecting of an existing file. Change-Id: I7752970c1dee9ec7bf61d390b8b1618a44370e16
2014-11-05markup with event type not checker typeCaolán McNamara
Change-Id: I14c0c5d90b67000cb4fe9e6be647854abfe784da
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-30Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini
Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-10-29remove unnecessary 'using namespace rtl' declarationsNoel Grandin
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>
2014-10-28coverity#704086 Unchecked return valueCaolán McNamara
following check is sufficient Change-Id: Ibcf53293c8e862ab823ed422d1a7a59dcc0977cf
2014-10-21Remove dead CustomerNumber functionalityStephan Bergmann
Change-Id: I221d3b9f0bf0f90a117fcf0caead52f2c31f7926
2014-10-21unotools: correct filename spelling - testGetEnglishSearchName.cxxChris Sherlock
Change-Id: I9d8bc0b8d9257e8bd2453a0707081c134cc775c3
2014-10-20fix font testsCaolán McNamara
Change-Id: I2738ea2a5c6714d8e43c06aa2eb4c53500a5afe9
2014-10-20Resolves: fdo#85006 limit script stripping to known suffixesCaolán McNamara
Change-Id: I276535b007bbb55555148d5937076b86da5de825
2014-10-11unotools: assert if TempFile::GetURL() fails due to missing file UCPMichael Stahl
Change-Id: I3dd844c656766835079bc191b3b55d3fba2c2219
2014-10-11move the removeTree function from desktop to unotoolsMichael Stahl
Change-Id: I98d3f4a68abfee42dac987633878b850134671d3
2014-10-08back out even more wrong tools::Time changes, geez..Eike Rathke
Change-Id: I52eb3400769999d7f554c3bdb8746f65b7990388
2014-10-01fdo#82577: Handle TimeNoel Grandin
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-10Typo: (N|n)ormaly->(N|n)ormallyJulien Nabet
Change-Id: I96d081f394b0b62d99ec1034bf5e99da9aedd9d9
2014-09-09fdo#82854 extended unit-testsMichael Jaumann
Conflicts: unotools/qa/unit/testGetEnlishSearchName.cxx Change-Id: Ie721cbc275998b37a4f6206079d55734b85308b0 Reviewed-on: https://gerrit.libreoffice.org/11348 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-08fdo#82854 - cleanup & review bits.Michael Meeks
Change-Id: Ia5b2628adb62013a22cf6c5e384154c54abc2294
2014-09-08fdo#82854 - use OUStringBuffer in fontdefs.cxx plus unit-test.Michael Jaumann
Change-Id: Ia3a4814467ed98bd3b1889991cc3644c0c23f515
2014-08-25set names on a bunch more threads...Michael Stahl
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
2014-08-22Remove some useless tools/debug.hxx includesMarcos Paulo de Souza
Also remove the tools/solar.h included from tools/debug.hxx. The include of solar.h header was necessary in some cases because of a macro or a typedef that was needed. Change-Id: Ia6e15d5c2571c58c9e9138b0d0a7f08ae88053c9 Reviewed-on: https://gerrit.libreoffice.org/11075 Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-08-22font lookup - cleanup GetEnglishSearchName function signature.Michael Meeks
Change-Id: I6e3ca358d88e0285fe6e07b0617f3078a5edb857
2014-08-21star* -> css::*Thomas Arnhold
Change-Id: I156d40badb1a11727d1320600a9d3af2b8b24e4a
2014-08-21unotools: use css aliasThomas Arnhold
Change-Id: I0440f589242d921e3e10e490e43f40cabd70ec9f
2014-08-21unotools: stario -> css::ioThomas Arnhold
Change-Id: I54b03d00e5cf0b0b43bf5c5db264660792baf951
2014-08-21unotools: staruno -> css::unoThomas Arnhold
Change-Id: I20a470fe654bfd1eec23dd2e0c13162a0b432a32
2014-08-21Typo: and->endJulien Nabet
Change-Id: I8c3707dbf537261d7ed9a69807fc1bdeae851526
2014-08-20Remove more useless includes of tools/debug.hxxMarcos Paulo de Souza
Change-Id: If289dcbff125ac0088f01b5c9752f9f3173585dc Reviewed-on: https://gerrit.libreoffice.org/11020 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-14java: remove commented out codeNoel Grandin
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1