summaryrefslogtreecommitdiff
path: root/sal/qa/osl
AgeCommit message (Collapse)Author
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-08CID#982700 silence coverityCaolán McNamara
Change-Id: I01fddeeca503ebc045c2f0e53c5917e6218e9d6e
2013-10-02-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I5740a22f0d768b9b1d7449f54b859bcb40401367
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-01Mark as constTakeshi Abe
Change-Id: Idd1d0641d5b7d8594f354c7d2e2a9093ecc6b2f7
2013-07-17Fix memory leak with osl_getCurrentSecurity ().Mark Wielaard
The result of osl_getCurrentSecurity () should always be deleted again with osl_freeSecurityHandle (). Change-Id: If0991937fcb24207d1f78166f61c4be22d423629 Reviewed-on: https://gerrit.libreoffice.org/4947 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-06-25coverity : #984128 and 21 others : Uninitialized scalar fieldNorbert Thiebaud
Change-Id: If801818c2efc8cdec651ff259243075abac41d20 Reviewed-on: https://gerrit.libreoffice.org/4497 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist
2013-05-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-09no mkdtemp on AIX eitherCaolán McNamara
Change-Id: I9103f86a5b8414c9cdf5fd3a2d662725343f0ed8
2013-03-25remove external include guardsThomas Arnhold
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-04doubled includesThomas Arnhold
Change-Id: I70ec796188e2388e1e4d699126f7ae817f5ff86e
2013-02-22Fix misspellings detected by https://github.com/lyda/misspell-checkTor Lillqvist
Just as a test to check the usefulness of that tool. It needs some improvement before really usable. Change-Id: I875e79c1992ed5f3b695736b0d49938ad0ba2d55
2012-12-25Get rid of (most uses of) GUITor Lillqvist
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-13NOMINMAX on Windows is defined globallyLuboš Luňák
2012-12-04remove unused variables and codeLuboš Luňák
Change-Id: I4cd76fb5bb3187a9a25e9a73556c8ee3be1a5361
2012-12-04API CHANGE: remove long-deprecated Semaphore & related stuff.Thorsten Behrens
osl::semaphore was not portable & thusly long-deprecated. Also killing further unused clients of that code in salhelper. Change-Id: Ie1c1924e06e8ce3be33fd1dc2c6933f2de8b5217
2012-11-21This function should obviously be exported for it to be callableTor Lillqvist
Change-Id: Ia63e27ec40a66c52b52292549ea03899c1b3801e
2012-11-21fix day of week naming in sal unit test.Michael Meeks
2012-11-21re-base on ALv2 code. Includes:Michael Meeks
Patch contributed by Herbert Duerr: #i118662# remove berkeleyDB from module xmlhelp (author=orwitt) http://svn.apache.org/viewvc?view=revision&revision=1213188 #i119141# remove ISCII converter for now http://svn.apache.org/viewvc?view=revision&revision=1306246 make exceptions for cppunittester verbose http://svn.apache.org/viewvc?view=revision&revision=1174831 Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Patch contributed by Oliver-Rainer Wittmann 88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 drop OS/2 code, remove in-line assembler ARM atomics, and obsolete armarch header.
2012-11-21Revert "#i116915# rewrote unx osl_getSystemPathFromFileURL to avoid mem leaks"Michael Meeks
This reverts commit 8c015fbb85f00fe1cc82e00ea1771ad9fba821d2. Conflicts: sal/osl/unx/file_url.cxx sal/osl/unx/makefile.mk sal/prj/build.lst sal/qa/osl/getsystempathfromfileurl/test-getsystempathfromfileurl.cxx
2012-10-13use consistently sal.osl and sal.rtl as log areasLuboš Luňák
Change-Id: Ib5e606283d3d37c38e9729c79c4531807a1419d3
2012-10-11loplugin: more unused OUStrings and so forthCaolán McNamara
Change-Id: I4f3a51e1fd3ddca9442022a7134306fbf32e13ae
2012-10-10loplugin: unused O[U]StringsCaolán McNamara
Change-Id: I020149a3073d8479887d108465cf5d3b727588d7
2012-08-14-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
Change-Id: Ib98c4d608f15980449a6949615a38cd8a436012f
2012-08-08reduce ascii noise and useless commentsThomas Arnhold
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08remove include comments and boxesThomas Arnhold
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-01Bin no longer used iOS cppunit stuff that breaks build evenTor Lillqvist
Change-Id: I78c71b22816834c66c8283e3d85e357b7b8d2836
2012-07-27Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in salArnaud Versini
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
2012-07-02Remove unused definesThomas Arnhold
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-06-27targetted re-work of cppunit pieces.Michael Meeks
2012-06-25Remove various commented out definesThomas Arnhold
Most of them in hrc files. Change-Id: I3944f6ed9befd2b498385f61b851790362221a4f
2012-06-22re-base on ALv2 code.Michael Meeks
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-02targeted string re-workNorbert Thiebaud
Change-Id: I145731d9f28faf0065f5960f2c5a32f27d8c8620
2012-06-01targeted string re-workNorbert Thiebaud
Change-Id: I2c166c63e9d2ab7d60bb404f643045678ef239a2
2012-06-01targeted string re-workNorbert Thiebaud
Change-Id: I368b9538e3c2e6242fcdcabb4f8c716e17b02d88
2012-04-08Replaced a few equal calls with ==Szabolcs Dezsi
2012-04-07WaE: msvc, unreachable codeCaolán McNamara
2012-04-05Translated German comments to English in folder 'sal'.Mark Wolf
sal/qa/rtl_strings/rtl_old_testostring.cxx contains some German comments still but the code itself uses test strings in German. When the test strings appear in the comments, they were left unchanged to maintain consistency. Mark Wolf
2012-04-03don't skip first cmdline argumentLuboš Luňák
It looks like this one is also meant to be called manually or something, and the original version didn't skip the first argument either.
2012-04-02fix crude command line arguments handlingLuboš Luňák
2012-04-02fix very ... uhm ... inventive and confusing use of empty stringLuboš Luňák
2012-03-28CPPUNIT_ASSERT_MESSAGE -> CPPUNIT_ASSERT_EQUAL_MESSAGELuboš Luňák
2012-03-21chmod -xTor Lillqvist
2012-03-07WaE: deleting 'PSID {aka void*}' is undefinedDavid Tardon
2012-03-07WaE: missing braces around initializerDavid Tardon
2012-03-07WaE: "NOMINMAX" redefinedDavid Tardon
2012-01-24dead code in qaThomas Arnhold