summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2013-03-11fdo#38838: Converting String/UniString to OUStringelixir
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-11Change definition of "dark" colour for fdo#61993Luke Deller
- Increase the threshold for "dark" colours from Luminosity<=38 to Luminosity<=60. This makes LibreOffice align more closely with MS Word when considering whether "automatic" font colour should be black or white, a decision that is based on whether the background colour is "dark". Beware that this also affects other areas. - Fix the coefficients for GetLuminosity which appeared to be off by one according to the "Rec 601" coefficients for Luma quoted at http://en.wikipedia.org/wiki/Luma_%28video%29 Change-Id: I0af1f77909713e3db5ea8ee98456146569679594 Reviewed-on: https://gerrit.libreoffice.org/2601 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-09fdo#43460: use isEmpty()Thomas Arnhold
Change-Id: I01f503ea5268245cc4f98524931730cfa063d57e
2013-03-08fix regression reading OleStorages ( over THRESHOLD size )Noel Power
Change-Id: I26daefd898873037325c02d96018890ebc7cb1b6
2013-03-07fdo#38838 Replaced some use of (Uni)String with OUString.Jean-Noël Rouvignac
Change-Id: Iad623c9300919fbae34279268a5a720f978c6434 Reviewed-on: https://gerrit.libreoffice.org/2514 Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-04Translate German commentsPhilipp Weissenbacher
Change-Id: I3c4b8fa5b80bdd4a38dc9ea15ad805e9430a6e68 Reviewed-on: https://gerrit.libreoffice.org/2540 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-04SHL_SHL1 now unused, tooThomas Arnhold
Change-Id: If73c578cf698b11b14b0f97b5f0deb0febac9b2f
2013-03-04remove unused and commented out codeThomas Arnhold
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-04The macro FEAT_FSYS_DOUBLESPEED has been removed and the related #if / ↵Jiri Blecha
#endif have been removed too. Bug: 61516 Change-Id: Id347e87a8789ddbe550dde7d7281d9c1cad0c199
2013-03-04fdo#61513: Remove FSysFailOnErrorImpl macroMarcos Paulo de Souza
This patch removes all used of this useless macro. Change-Id: Ib3842ef28ea676e75b18c192f8d9610dcb3c3d0c
2013-03-03binfilter: remove some tracesThomas Arnhold
Change-Id: I5b03dcb5d1f8c73c7a308e7ae209cc7872f18c61
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-02-28remove all d.lstMichael Stahl
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-27fdo#39446 - Bloat Removal. Removing uncallable code with callcatcherJean-Noël Rouvignac
Removed several unused methods. Could not remove ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() and ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) because it breaks compilation (they are implementing pure virtual methods). Should Test::test1Table1Page() really be removed? (test class) Conflicts: unusedcode.easy Change-Id: I98a761f66f28e3a82661c10a5fa1dc7e109fff2f
2013-02-27tools: move FileCopier out of public headers, and remove unused bits.Michael Meeks
Change-Id: Iccd052ae2587bb4448ecb5bc94aeba5dd2a2291e
2013-02-27port horrible tools temp directory abstraction to sal.Michael Meeks
Change-Id: I3688c8babf7719091404317b13014283a8ce9492
2013-02-27sal: new ZipPackage_sal_odk_headers for public ODK headersMichael Stahl
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
2013-02-24loplugin: unused variablesThomas Arnhold
Change-Id: I7fc203900256839e679bf73b717d121fedc42087
2013-02-24fdo#38838 searched, replaced and removed String::CreateFromInt32().Jean-Noël Rouvignac
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ And finally removed String::CreateFromInt32(). Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5 Reviewed-on: https://gerrit.libreoffice.org/2279 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-23Fix typo "sucessfully" -> "successfully"Julien Nabet
Change-Id: I01c85e4d3853c44fa05acc3019bc35c56c4f655e
2013-02-23sal: update log areasThomas Arnhold
Change-Id: Id7b2c7e871abf19b70f427095371c6a6c0208607
2013-02-22[Uu]sefull -> [Uu]sefulJulien Nabet
Change-Id: I5dad83789ff9b6815561208679a5e19821041e1f
2013-02-22s/the the/the/Tor Lillqvist
Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
2013-02-21fix snafu that crept in with 5da5cd60acb7a18878300da7f4b0acb0dbad1888Michael Meeks
Change-Id: I391a415e0f4bf3813637191ef04c0b5f72a2c470
2013-02-19fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: Ib47c4b4c9604bca1f8a635dd01bb89702b47b591 Reviewed-on: https://gerrit.libreoffice.org/2010 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-02-15rscdep is dead and gone ... and there was much rejoicingBjoern Michaelsen
Change-Id: Id411a6caceaac92d3044fe6a2385d8b1c2f16133
2013-02-15so_checksum is dead and gone ... and there was much rejoicingBjoern Michaelsen
Change-Id: I6cba24830d397ca405646a1deb0ee0385a3b67e4
2013-02-15mkunroll is dead and gone ... and there was much rejoicingBjoern Michaelsen
Change-Id: Ib5e791e85b244ac5af5b504a237892b6d81eeba8
2013-02-13Reduce scopeJulien Nabet
Change-Id: I6bdff92cee194d79af98227d48c68304ee56593b
2013-02-13Fix Buffer overrun possible for long command line argumentsJulien Nabet
Change-Id: I5e66ded25afd08f4e203ce8484001e11e0022fca
2013-02-12Some cppcheck cleaningJulien Nabet
Change-Id: I74ff9d8d116ebfe9ebc302c79a3763eda9c1250f
2013-02-08fix incorrect string conversion in 9e310cc32923ceb4b18d97ce68d54a339b935f01Luboš Luňák
Change-Id: Ia1ddf969f876ce47b4195c60039b38f2a47f3470
2013-02-08fdo#38838 Some removal/replacement of the String/UniString with OUStringJean-Noël Rouvignac
Change-Id: I6daea312198fae3a9717bd8d4fea6371aa4cd275 Reviewed-on: https://gerrit.libreoffice.org/1962 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-30Get rid of STAR_RESOURCEPATHStephan Bergmann
...the only remaining use was for CppunitTest to find the .res files in $(OUTDIR)/bin/. Get that solved by delivering the .res files also to $(OUTDIR)/unittest/install/program/resource/ (new gb_ResTarget_get_unittest_target). Change-Id: I370e7cab4223256356c7511b88ae63d9c0dbf215
2013-01-28fdo#38838 Some removal/replacement of the String/UniString with OUStringJean-Noël Rouvignac
Changed SfxItemPool::GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String &rText ) const; to use OUString. Change-Id: I656c1d321ff96f1f2e5b77f6adc103ef0a6fdf66
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-26Remove redundant braces around for loopsStephan Bergmann
...that had once been workarounds for compilers that did not yet support the C++98 scoping rules for declarations in for-init-statements. Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
2013-01-22Detect SvStream::operator<< calls with bool args w/o using -Wsign-promoStephan Bergmann
...as -Wsign-promo caused other problems and has been removed again with 488823a140217e393298bc83e75084041a85ed45 "Remove -Wsign-promo." It had originally been introduced with e8bbb76827dd7a0e30d7d1db34a812a84d85f390 "ensure correct export size type in stream operation," apparently to detect an SvStream::operator<< call with a bool argument that would pick the "int" overload instead of the "unsigned char" (aka sal_Bool) one (which would have happened to trigger the -Wsign-promo warning "by luck," given that sal_Bool is unsigned char and not signed char, say). Change-Id: I0bf4389753e53a535bd90ca2a98b6a5be63d179a Reviewed-on: https://gerrit.libreoffice.org/1798 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-22make fast string concat comparisons non-ambiguousLuboš Luňák
Follow-up to https://gerrit.libreoffice.org/#/c/1803/ . Change-Id: I9131854a579ef57e38dfef7faa539bec98fc305b
2013-01-22tools/string.hxx: add operator==/!= for OUString/StringMichael Stahl
This has the disadvantage that it makes comparisons involving fast OUString concatenation via operator+ ambiguous, as can be seen in scriptdlg.cxx, but it allows comparing String and OUString wihout explicit conversion, which is nice for incrementally converting code. Change-Id: Ibfc728bdb161a01e0f8311915c97bcbba8b58c0b Reviewed-on: https://gerrit.libreoffice.org/1803 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-21Fix Variable 'nMode' is reassignedJulien Nabet
See http://nabble.documentfoundation.org/Cppcheck-Variable-nMode-is-reassigned-in-fstat-cxx-td4030405.html Thank you Stephan! Change-Id: I780d422fe03c4c125cc89fee778d820a20553c1c
2013-01-21Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()Jean-Noël Rouvignac
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de Reviewed-on: https://gerrit.libreoffice.org/1784 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-07Cleanup: #include <tools/gen.hxx>Matteo Casalin
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-01no non-ordering dependencies on <whatever>/.dirLuboš Luňák
As that'd be like forcing a remake every single time.
2012-12-30add runtime deps for custom targetsDavid Tardon
Change-Id: I49272003ea72c84c9e81bc826820b0ac5f9d5008
2012-12-29Some cppcheck cleaningJulien Nabet
Change-Id: Id027823617d2328b9e827268825812634731a828
2012-12-29Revert "String Cleanup and news OUString methods/constructors"Tor Lillqvist
Broke a unit test and made all tinderboxes red. This reverts commit 3179055dc3e267c961a5618c810fbc0df1858d72.
2012-12-28String Cleanup and news OUString methods/constructorsRicardo Montania
Change-Id: Ia6142020330d0e12650fdc519b66f00e607eac42 Reviewed-on: https://gerrit.libreoffice.org/1491 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-12-27Check for __GNUC__ instead of GCC in sourcesTor Lillqvist
We still have checks for $(COM) being GCC or MSC in makefiles, of course. But there is no reason to pass -D$(COM) to compilations. Checking the built-in compiler-specific macros __GNUC__, _MSC_VER (etc) is the right thing to do. Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592
2012-12-27Check for _MSC_VER instead of MSC in sourcesTor Lillqvist
Change-Id: Ibaf2501e6b655913963a53c1cd63668f1c4cccb2