summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* Mark as constTakeshi Abe2013-07-011-6/+6
| | | | Change-Id: Ic71f39aaebf07d3b0435882986be71cf2b0390c2
* Translate German comments.Chris Hoppe2013-06-271-5/+5
| | | | Change-Id: Ida59dcca7c9a0305aecddaa68f4e585321144458
* coverity #982634 and 5 other : Intentional fallthrough in casesNorbert Thiebaud2013-06-251-0/+8
| | | | | | | Change-Id: Ie6cfcc32c1ff80dab0f9835524c89d40503f69f0 Reviewed-on: https://gerrit.libreoffice.org/4498 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* coverity : #984128 and 21 others : Uninitialized scalar fieldNorbert Thiebaud2013-06-251-0/+72
| | | | | | | Change-Id: If801818c2efc8cdec651ff259243075abac41d20 Reviewed-on: https://gerrit.libreoffice.org/4497 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* coverity#706154 : Destination buffer too smallNorbert Thiebaud2013-06-241-18/+52
| | | | Change-Id: I27bc8803353047a057caaf2353f10cdab08e81e9
* Fix warning: Value stored is never readTor Lillqvist2013-06-191-2/+2
| | | | Change-Id: Ic41fe1682f19c39faa0a2afc47c11b8a5bead212
* Fix warning: Value stored to 'eEncoding' is never readTor Lillqvist2013-06-191-1/+0
| | | | | | eEncoding is assigned again a few lines below. Change-Id: Ib475095bab30e0c2f066934a10cda650706c2c8a
* Add missing break statementsTor Lillqvist2013-06-191-0/+3
| | | | | | Found by Clang static analyzer: Value stored to 'prio' is never read. Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
* Delete unused sal testsDavid Ostrovsky2013-06-1912-10038/+0
| | | | | | | Change-Id: Iba1eeb8d8fd0582f216b7552dc9ae21b69e66b4e Reviewed-on: https://gerrit.libreoffice.org/4326 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
* Don't use deprecated API for OS X alias resolvingTor Lillqvist2013-06-161-31/+43
| | | | Change-Id: Ifaaec1863f12cd73d0a77c3367935f57675157e2
* Indent macxp_resolveAlias() consistentlyTor Lillqvist2013-06-161-39/+39
| | | | Change-Id: I66ab13c4111678f20a09f14126304a0c11116180
* Introduce O[U]String::toUInt32Stephan Bergmann2013-06-133-27/+55
| | | | | | | | | | | | | | | ...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
* mingw64: casting to pointer from narrower integer fixes in salFridrich Štrba2013-06-104-10/+10
| | | | Change-Id: I63321e33f92223be47c7ee25dbf03fe3032991d6
* fdo#41226 Add error handling of recursed GetCaseCorrectPathNameEx()Isamu Mogi2013-06-061-1/+2
| | | | | | | | | | | | | | GetCaseCorrectPathNameEx() with bCheckExistence = true doesn't support windows share path but occasionally it doesn't return failure and returns broken result. For example, when we call with "\\USER-PC\Users\foo" then it converts the path to "\Users\foo". And when "\Users\foo" exists, it returns "\Users\foo". It is caused by missing error handling of searching for file "\\USER-PC". Also similar bug possibly occurs even for local file path. This commit fixes these bugs. Change-Id: Idf1dd1282510d8a6810ed239a83051bb0f8e2f87 Reviewed-on: https://gerrit.libreoffice.org/4151 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* Don't truncate pointers to 32-bit ints on win64Fridrich Štrba2013-06-041-1/+1
| | | | Change-Id: I5305bf7c82cd3f9f4437de59b53024ef97a7fbc8
* rewrite OUString test to not trigger literalalternative plugin warningsLuboš Luňák2013-05-311-8/+10
| | | | Change-Id: Ic359209c44171ab42fa21cd300b433facd3c5ea6
* WaE: variable ´res´ set but not usedTor Lillqvist2013-05-201-0/+1
| | | | Change-Id: I5f252f75d22f041c76c7d3cfcdd36f69becf086f
* sal osl_getGlobalTimer: Don't confuse start and current time.Mark Wielaard2013-05-201-4/+2
| | | | | | | Change-Id: I575dd70d6b80d4f3279476037e509550cfa23fde Reviewed-on: https://gerrit.libreoffice.org/3979 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* Also iOS has tm_gmtoffTor Lillqvist2013-05-201-1/+1
| | | | Change-Id: Ic0f883672b4bde3142ac257a57464bdbb90df96b
* iOS is based on Mach, tooTor Lillqvist2013-05-201-7/+7
| | | | Change-Id: I9b6bdc374c9e92af754094f31e1ff212fb386f9e
* Thread-safe version of osl_getGlobalTimeNorbert Thiebaud2013-05-204-30/+83
| | | | | | | | Change-Id: Ibb9d23780600437f607d866ff3d396b96879245d Reviewed-on: https://gerrit.libreoffice.org/3960 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Spelling "separate" (etc) correctly is hardTor Lillqvist2013-05-153-8/+8
|
* Fix syntax errorTor Lillqvist2013-05-141-1/+1
| | | | Change-Id: I161cf0fb2c5bd071a963ece61928efb7938de6c2
* Include PID and TID in SAL_DEBUG outputStephan Bergmann2013-05-141-53/+45
| | | | | | ...and clean up log.cxx somewhat. Change-Id: I657cf6c938cafa61959a8dc59c9f95dba5183d9f
* clock_gettime requires -lrt at least on Fedora 18Stephan Bergmann2013-05-131-0/+1
| | | | Change-Id: Id01c86517a89dffd560440d333a37eaa80738b56
* Use clock_gettime instead of gettimeofday to have more precise timeArnaud Versini2013-05-131-3/+19
| | | | | | | Change-Id: I8e568368e7626789dee21d4823dbedec6257a231 Reviewed-on: https://gerrit.libreoffice.org/3841 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl2013-05-101-1/+2
| | | | Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
* fix typos (wich instead of which)Philipp Riemer2013-05-061-1/+1
|
* remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák2013-05-065-14/+12
| | | | | | | Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-3029-621/+116
|
* This *is* C codeTor Lillqvist2013-04-261-1/+1
| | | | Change-Id: I4461b7a38862ad2c9861861fad8d6bf4bafd01ab
* fdo#63154: Remove all usages of the macro EXTERN_CMarcos Paulo de Souza2013-04-261-1/+1
| | | | | | | | | Change-Id: I25b7f509ba5d1007a16c84ad05870a8174c094ec Reviewed-on: https://gerrit.libreoffice.org/3621 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* update pchThomas Arnhold2013-04-251-0/+70
| | | | Change-Id: I67e73438312f2a672e71762ee6707ec5d425bb47
* gbuild: drop empty use_packages callsDavid Tardon2013-04-243-9/+0
| | | | | | | Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* gbuild: drop uses of removed packagesDavid Tardon2013-04-242-2/+0
| | | | | | | Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* move sal_inc headers to include/David Tardon2013-04-2411-812/+0
| | | | | | | Change-Id: I840c681b7c500640d3983e05e9895f3fa8bb1313 Reviewed-on: https://gerrit.libreoffice.org/3501 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* move URE headers to include/David Tardon2013-04-2489-29665/+0
| | | | | | | Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* Avoid warnings from compilerplugins/clang/sallogareas.cxxStephan Bergmann2013-04-221-19/+6
| | | | Change-Id: Icce3ffd29398a3488e7704562a4e9064f106b393
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-2231-731/+124
|
* Revert "fdo#62096: Replaced some compareTo with =="Fridrich Štrba2013-04-222-7/+7
| | | | This reverts commit dd47994722eaead16099145e593fbf878072d52b.
* fdo#62096: Replaced some compareTo with ==Sameer Deshmukh2013-04-222-7/+7
| | | | | | | Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c Reviewed-on: https://gerrit.libreoffice.org/3509 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* sal: remove obsolete test/unloadingMatúš Kukan2013-04-195-1139/+0
| | | | | Change-Id: I76ede5abd4662aaa2f5b01739da07cf3169ddb69 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* better use SAL_LOG_INFO as triggerBjoern Michaelsen2013-04-191-1/+1
| | | | Change-Id: I37635f9bd86d194b303705a58d81502d7d586692
* Add pan gesture handlingTor Lillqvist2013-04-191-0/+1
| | | | | | | | I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e
* forward RTL_CONTEXT_foo logging to SAL_INFO in default debuggingBjoern Michaelsen2013-04-181-3/+21
| | | | | | | | | | | | | | | * RTL_CONTEXT_foo is originally intended to be used for performance measurement, but mostly unused right now * however its macros are sprinkled all over the codebase and might provide good help for ad-hoc debugging, and prevent SAL_INFO duplication * if there is no performance logging, these macros are now forwarded to SAL_INFO with logarea "logfile" or "$AREA.logfile" Change-Id: I495c8924e5b55124f7eac68eccda074d0740c117 Reviewed-on: https://gerrit.libreoffice.org/3421 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
* fdo#62096 - replace some O(U)String compareTo with ==Artur Dryomov2013-04-171-1/+1
| | | | | | | Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d Reviewed-on: https://gerrit.libreoffice.org/3422 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* Update pchAurimas Fišeras2013-04-171-2/+0
| | | | | | | Change-Id: Ice80350184f7a514d5beab0a5e1da5b98d5733e4 Reviewed-on: https://gerrit.libreoffice.org/3427 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* -Werror=unused-macros (MinGW, sal)Stephan Bergmann2013-04-178-23/+2
| | | | Change-Id: I7c0411320798721e70de32580de6adcf5565f12a
* Further clean-up related to removed library unloading featureStephan Bergmann2013-04-163-126/+41
| | | | Change-Id: I1ec2aa4d0ed0940e7c0a26a18c78f2df4693d278
* API CHANGE: remove some of useless rtl/unload.h functionalityMatúš Kukan2013-04-163-560/+29
| | | | | Change-Id: If32923e35ef97f42d5203975362e5c76948ff327 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>