summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2014-07-04Use standard library optimised routines for OUString/OStringNoel Grandin1-60/+178
..handling where possible. Change-Id: I0b071988ed266cc2745a8ca9705c106a05edc557 Reviewed-on: https://gerrit.libreoffice.org/10020 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-03coverity#1187696 Unintended sign extensionCaolán McNamara1-1/+1
Change-Id: I8e56137ad4422381adbf13b179e2ae6f04edea6e
2014-07-03Use gb_CppunitTest_use_executableStephan Bergmann1-3/+1
Change-Id: I58b0d7d7a9a0ee78650b536b41154aee466f8ac5
2014-07-01Clean up surrogates.hxxStephan Bergmann4-35/+25
Change-Id: I0eae089be1bde9db822a77bea482c10650c8a137
2014-07-01New loplugin:stringconcatStephan Bergmann1-10/+5
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-07-01android: LibreOfficeKit needs the path to program/ as the starting point.Jan Holesovsky1-1/+14
Change-Id: I7d4534649361e1bfa2c285e67e6765a4be55ec69
2014-07-01clang scan-build: various warningsCaolán McNamara3-5/+6
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
2014-07-01lok bootstrap: nicer function names, clean-upTomaž Vajngerl1-21/+24
+ prevent lokandroid JNI functions to be removed from the library + basic use of lok Office / Document in LibreOfficeMainActivity Change-Id: I7bfe53738cf821b2270ab3e024cc506a7cff42f0
2014-07-01Actually not necessary to log this, it is already logged a bit later.Jan Holesovsky1-2/+0
Change-Id: I30380b58b3141ac20e90e47a1538156b5b4dd08f
2014-06-30It is useful to know what macros are we expanding, and to what.Jan Holesovsky1-1/+4
Change-Id: If7704edc5baa9759abc680b8d2040b9cdfe92317
2014-06-30android: Enable debugging messages as the first thing we do.Jan Holesovsky1-0/+2
Additionally log what we are trying to open - very useful for debugging bootstrap problems ;-) Change-Id: I942b144d97a57cbcb709b2d67029bfa09b339be2
2014-06-30android: Make the extract_files() part of setup / init.Jan Holesovsky2-24/+9
We need to have the files extracted before we attempt to initialize LibreOfficeKit (call libreofficekit_hook), otherwise the .rdb's are not there. Change-Id: Ib49db7e945a709d18a063eb488a27df18fef542b
2014-06-30android: Make use of LibreOfficeKit.Jan Holesovsky2-19/+40
Now the LibreOfficeKit is used to actually attempt to bootstrap LibreOffice; at the moment fails to do that. Change-Id: I91220dbff783213bf7702e7213a5646859db4581
2014-06-30android: Introduce LibreOfficeKit.java to bootstrap using LibreOfficeKit.Jan Holesovsky3-7/+135
Change-Id: I5e1758c15684b06ab6809f62f4da6d5f50c071a9
2014-06-27loplugin:unreffun: also warn about unused function templatesStephan Bergmann1-71/+0
Change-Id: I4a6280f47ca3c4a77b4e42fe05d79ded7fc30ef1
2014-06-26Mac OS X does provide localtime_r and gmtime_rStephan Bergmann1-0/+2
Change-Id: I1142463972df76aac9e491abbfd08a67cf4db1f1
2014-06-17-Wstrict-prototypesStephan Bergmann5-7/+7
...no reason to not have it enabled for URE C include files and what little real C code is still left. (But note that Clang ignores that warning.) Change-Id: Ia6940f9f940a0c226e9b724331d65c9862ce32e6
2014-06-13loplugin:staticcallStephan Bergmann1-1/+1
Change-Id: Ia4111a0fb76c848d3bd2d01f3835995e4c007b6b
2014-06-12coverity#982462 Dereference after null checkCaolán McNamara1-7/+11
Change-Id: I5e90d51440afa4e317bc07ccb937f606edbc9eb9
2014-06-05sal/rtl: remove SAL_THROW macroNoel Grandin2-14/+11
Change-Id: I70e41f087dbe188f8fc455150480faeae2b426ed
2014-06-04Keep TestFixture alive until outputter is done with itStephan Bergmann1-15/+19
Change-Id: Ifd921efa971f7a9a5c47f42c5d56a3deb1c3a0b3
2014-06-04Cover ctors/dtors of our TestFixtures under the protectors, tooStephan Bergmann1-3/+8
Change-Id: I4c3030e5a205bd102d0427e74d2fe3b828ff5ae6
2014-06-01fdo#68849: Add header guards to all include filesJens Carl2-0/+10
Added header guards to files in directories sal/, sal/, and scripting/ Change-Id: Ieb7f224f2d27bd671618c516f47f5b7f08c1d294 Reviewed-on: https://gerrit.libreoffice.org/9582 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-28update_pchThomas Arnhold1-0/+1
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28dlclose confuses LeakSanitizerStephan Bergmann1-4/+3
...so just do not bother unloading the protector libs again Change-Id: I33caa7beaac3b5e6c4a4836061def24fc5372b70
2014-05-27Remove unnecessary semicolonsPeter Senna Tschudin2-2/+2
A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-25fix encoding: iso-8859-1 -> utf8Thomas Arnhold2-10/+10
Change-Id: I3643c38345ec253b7c396a67b9f350a51f6aaf40
2014-05-24cppunit: always compile with debugging symbols on windows.Michael Meeks1-0/+1
Also cleanup some makefile pieces and give better error warnings. Change-Id: I9f20d60f26d5828f60664941946c266c7d166f32
2014-05-24coverity#982175 Unchecked return value from libraryCaolán McNamara1-1/+2
Change-Id: I7acba38a00dfc1101e6217bff098ef7d6f032497
2014-05-23coverity#1079283 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: Ib849ff0839bba80d5695c0f78dd18448b668ec78
2014-05-23coverity#1079282 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: If20b1108af89dec75d8c6a232290ab28e51d09d4
2014-05-23coverity#1079281 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: I17dc424d485053d3eb09e8eb0dd01dd4b4672bfd
2014-05-23coverity#1079280 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: I57de2b441c6a1d04c0ea54ad4ff1a66989e0cac8
2014-05-23coverity#1079279 Uninitialized scalar fieldCaolán McNamara1-1/+7
Change-Id: I8b9ac5da3a7c137edec3688cc712079685039c26
2014-05-23coverity#1079278 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: Ie5f9629340632b8ab17e3fc940dff8195f7673ce
2014-05-23coverity#1079277 Uninitialized scalar fieldCaolán McNamara1-1/+7
Change-Id: Ic7c05f298fec49f1336ab55dde31574a39ebe73b
2014-05-23coverity#1079284 Uninitialized scalar fieldCaolán McNamara1-1/+7
Change-Id: I0d39b2c7b39761fb89b9e7787fd3145ff3daa3a4
2014-05-23coverity#1079285 Uninitialized scalar fieldCaolán McNamara1-1/+6
Change-Id: Icca0d21a67f1322a84220cde3d10acd5230c9fdd
2014-05-22WoE: while (..) {} instead of while(..);Douglas Mencken1-1/+1
"warning: suggest a space before ';' or explicit braces around empty body" Change-Id: I71a55cc888d3480217621491ecace7d0af3dca6e Reviewed-on: https://gerrit.libreoffice.org/9441 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-05-22Work around undef conversion of large double to floatStephan Bergmann2-4/+35
...as flagged by -fsanitize=undefined. But is it really undefined? [conv.double] "If the source value is between two adjacent destination values, the result of the conversion is an implementation-defined choice of either of those values." So if the double is between std::numeric_limits<float>::max() and std::numeric_limits<float>::infinity()... Change-Id: I6389c8ac4a922991e240638d231dd2a39e173882
2014-05-22Avoid undef conversion from log10(INF) = INF to sal_Int32Stephan Bergmann1-0/+8
Change-Id: Iffe85763097829cb04b766314077b5f2a9b5b8d5
2014-05-22Fix order of function pointersStephan Bergmann1-2/+2
Change-Id: Ic1bae7fcebfaf35b62aecd86ed8b3a70fae3e4d3
2014-05-22fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTMukhiddin Yusupov2-350/+46
Replaced OSL_ASSERT with SAL_WARN_IF, OSL_TRACE with SAL_INFO Change-Id: Ia2283c09ac702558fe6ad39e963b0f401ef31de0 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-21Default OS X thread stack size too small for -fsanitize=addressStephan Bergmann1-5/+12
...witnessed stack overflow in huge function FunctionMapFactory::createFunctionMap__library_effects__allChildren in workdir/UnpackedTarball/opencollada/COLLADASaxFrameworkLoader/src/generated14/ COLLADASaxFWLColladaParserAutoGen14PrivateFunctionMapFactory.cpp Change-Id: I9451912043e282c8e06aff446cf3d1190f1de9cf
2014-05-20fdo#60338: Introduce osl_createDirectoryWithFlagsStephan Bergmann3-4/+29
...so that utl::TempFile can pass osl_File_OpenFlag_Private and doesn't have to resort to umask (the calls to umask around Directory::create had somewhat erroneously been removed recently with 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 "Related fdo#60338: Create missing temp file dir with user's original umask," mistaking this for creation of intermediate directories in the hierarchy). On Windows, the flags argument to osl_createDirectoryWithFlags is ignored completely for now. Change-Id: Iac56a5049d579be729a3f338aa62105123edb6cb
2014-05-20Revert "fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT"Stephan Bergmann2-9/+9
This reverts commit 0562a17c64f4016f2d3ba01e1c19c27feadb2543, sal/log.hxx functionality is only available in C++.
2014-05-20fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTMukhiddin Yusupov2-9/+9
Changed OSL_ASSERT with SAL_WARN_IF Change-Id: Ie81eeb51f6978162abd372f7e9910344a2baaccd Reviewed-on: https://gerrit.libreoffice.org/9401 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-05-20Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHsMichael Meeks1-0/+8
Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
2014-05-20Remove unnecessary castsStephan Bergmann2-7/+7
Change-Id: Iafc7727a22d657dfb6bc97ed767907cce3679364
2014-05-20C string usage improvmentArnaud Versini3-19/+8
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>