summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* improve comments of isEmpty()Chr. Rossmanith2013-02-074-7/+20
| | | | Change-Id: I6542470c2d4b27de25e263651e25baf85c7d018d
* O(U)String::valueOf don't duplicate codeDavid Ostrovsky2013-02-062-8/+2
| | | | | | | Change-Id: I586fca181f63999a8f2d19d600b69f6788fd61d9 Reviewed-on: https://gerrit.libreoffice.org/1992 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* add method isEmpty() to OUStringBufferChr. Rossmanith2013-02-061-0/+13
| | | | | | | Change-Id: Ia11d97eebbb08e8058a5f919ed3db3029ce39a78 Reviewed-on: https://gerrit.libreoffice.org/2017 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* New log area (for previous commit)Stephan Bergmann2013-02-051-0/+1
| | | | Change-Id: I9cc1fdfa7acad6c233b68eb23dea39c58d4cecaa
* testOUBoolean should test with OUString, not OStringLionel Elie Mamane2013-02-051-1/+1
| | | | Change-Id: I103ca7d72e6bae6c20605719451579dd156504ce
* Use SAL_STRINGIFYStephan Bergmann2013-02-041-6/+2
| | | | Change-Id: Ibdb7d143e02301fdd8d04cf1c59421dcd98dac2f
* remove sal_Bool from boolean() docs tooLuboš Luňák2013-02-042-4/+4
|
* OK for boolean() to take true bool argumentStephan Bergmann2013-02-043-4/+28
| | | | | | | | | ...instead of sal_Bool; this would cause C4800 performance warnings with MSVC, but we disable them anyway. Also, added unit tests that are actually executed. Change-Id: Ib405132565918be72d93b3fc24180edcb6e565c7
* Strings: boolean() as a replacement for valueOf(sal_Bool)David Ostrovsky2013-02-044-12/+44
| | | | | | | | | valueOf(?) has been superseded by number(?). O(U)String::valueOf(sal_Bool) has been deprecated without providing an alternative method. Use boolean() method as a replacement for it. Change-Id: I7eb74574fa8f1a3cf007cb0cbc32e681007ffb92 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* add OUString::toUInt64()David Ostrovsky2013-02-044-70/+117
| | | | | | | Change-Id: I2051e161219d424d2c2b69faf6f939cfe21fa5f7 Reviewed-on: https://gerrit.libreoffice.org/1980 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* Add vcl.atsui and vcl.coretextTor Lillqvist2013-01-311-0/+2
| | | | Change-Id: I9c9db51f04db5a0d073bd7493c198e8413299633
* fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan2013-01-311-0/+1
| | | | | | | | | - replaced OSL_TRACE with SAL_INFO Change-Id: I4d63df493e85bc095b8a11e3842b0d69c5217c96 Reviewed-on: https://gerrit.libreoffice.org/1804 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* Introduce SAL_OVERRIDEMiklos Vajna2013-01-301-0/+13
| | | | Change-Id: I3675b627d5e9ca19b2c4fb69fef12d0dabf94a43
* osl::{File,Directory}::getURL() had curiously been missingStephan Bergmann2013-01-301-0/+18
| | | | Change-Id: I0af83e7aeaf681440d4bbb50d8b00390f8464b1a
* make SAL_WNODEPRECATED_DECLARATIONS_PUSH work also with ClangLuboš Luňák2013-01-301-1/+1
| | | | | | Clang claims to be GCC version older than the one tested for. Change-Id: Ia9886915f62f886810e091f66d8e5710047e2e2f
* Get rid of STAR_RESOURCEPATHStephan Bergmann2013-01-301-0/+1
| | | | | | | | | ...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
* Strip SRCDIR from the logging outputTor Lillqvist2013-01-292-2/+7
| | | | Change-Id: I6069102f6b9df72a63a840758158f672fdd6c621
* cleanups for number() string functionLuboš Luňák2013-01-286-245/+248
| | | | | | | | | | | | | | | - add sal_uInt64 valueOf helper to handle its full value range - group deprecated valueOf() together - forward to the number() taking the largest type instead of repeating the same code every time - various doc improvements: - add missing @since - do not refer to non-existent number() overloads in docs - "use number" - "huh, of course I use a number?" - "code your own" - my own function? why? - + or += operators are not, strictly speaking, replacements for valueOf() Change-Id: Ib138a06c4ac4365cfffc534e6ab115d55180a70d
* consolidate the float number testsLuboš Luňák2013-01-281-25/+2
| | | | | | | And remove some unneeded ones (the float actually didn't have the necessary precision on 32bit anyway). Change-Id: I52dd387fd319dd6a5b44333a71d012ebaaecbf18
* gbuild: do not copy boost headers aroundMichael Stahl2013-01-265-1/+12
| | | | | | | | | - 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
* Remove redundant braces around for loopsStephan Bergmann2013-01-261-8/+8
| | | | | | | ...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
* OSQLParser::RuleIDToRule should not silently change s_aReverseRuleIDLookupLionel Elie Mamane2013-01-231-0/+1
| | | | Change-Id: I2b408a23162b1200bbcd530be7acb42435388b04
* refer more explicitly to sal/inc/sal/log-areas.dox for adding new areasLuboš Luňák2013-01-221-1/+2
| | | | Change-Id: If9eecbf69a4486dcd84d475719aa66f480faea0b
* Revert "avoid -Wsign-promo warnings"Stephan Bergmann2013-01-212-48/+0
| | | | | This reverts commit 1efe9a15f86a7a9dc08b57fd1dd12336522ba515, which is obsoleted by 488823a140217e393298bc83e75084041a85ed45 "Remove -Wsign-promo."
* Use default visibility for exception types even when DISABLE_DYNLOADINGTor Lillqvist2013-01-191-4/+8
| | | | | | | | | | | Otherwise the dlsym() lookup of the typeinfos in the C++/UNO bridge won't work. And it has to, because at least for iOS on ARM the dynamically created typeinfos don't match those the compiler-generated code tries to catch, so otherwise exceptions thrown across the bridge don't get caught. (Fascinating, I am able to talk about this stuff as if I understood it.) Change-Id: Ie0d4632743e18719782f55904fb76f45c944f20c
* microoptimization for "" OUString ctorLuboš Luňák2013-01-192-4/+16
| | | | | | Now 'OUString()' and '""' should be exactly the same, and thus the latter better :). Change-Id: If42b2ca5889967aaa8ccdaf531b45c75c12d54fd
* avoid warning about a comparison being always trueLuboš Luňák2013-01-182-0/+4
| | | | Change-Id: Ie0bd47a16af56b7d3ae070d5b82ec46ed21834c0
* avoid -Wsign-promo warningsLuboš Luňák2013-01-182-0/+48
| | | | | | | I actually find the warning to be obsolete nonsense (the manpage talks about cfront), but at least for now. Change-Id: I4390b1779f6f8de062afd441f6855cb760adf93d
* long and long long can be the same size (and thus also sal_Int64)Luboš Luňák2013-01-183-1/+2
| | | | Change-Id: I3961ec27d23915b038c3a803dc71e7d937ca331c
* Create OUString and OString number(*) methods.Noel Grandin2013-01-184-12/+382
| | | | | | | | | | | | | | | | | | | | | | API CHANGE: Adds new methods (several overloads) OString::number() OUString::number() and marks all of the existing fromValue() methods as deprecated. The purpose of this change is to clean up call sites by hiding the necessary casts. The casts are necessary because of overload resolution rules which are somewhat vague about which methods to choose when using integer types. See mailing list discussion here: http://nabble.documentfoundation.org/replacing-OUString-valueOf-static-cast-lt-sal-Int32-gt-td4027989.html Subject: "replacing OUString::valueOf(static_cast<sal_Int32>) ??" Change-Id: Id3d150a6525eb0334e41e2ec6640bb06cd790b43 Reviewed-on: https://gerrit.libreoffice.org/1625 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#58415: Don't ignore osl_getFileURLFromSystemPath failureStephan Bergmann2013-01-161-5/+15
| | | | | | | | ...in osl_getFileStatus et al, it would leave the relevant status string member unchanged (i.e., a null pointer) but would mark it as valid, so that later code to retrieve the allegedly valid string member would crash upon the null pointer. Change-Id: Ia8528f5dc27d94f3d14a2c416955a041b87863d3
* Remove obsolete typesconfigStephan Bergmann2013-01-142-446/+0
| | | | Change-Id: Ic3fd543351637c610621814bb8c8f4fa3cab64fc
* Simplify codeStephan Bergmann2013-01-141-29/+12
| | | | Change-Id: Ib35cba4544726c1653d36072f3499dffec3cced3
* Fix workaround for thead-unsafe getenv againStephan Bergmann2013-01-111-12/+24
| | | | | | | | | ...from d19c40f45dc8e8bcd9db4c6b83bdcf6367f6fbe7 "Work around some potential problems with thread-unsafe getenv" that had been broken with 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is changed while the process is running." Change-Id: Ibd6dbc9921ae1f8dee114380f01a076b0770788c
* Further socket callback clean-upStephan Bergmann2013-01-113-16/+0
| | | | Change-Id: Ifcbb87cff50584934f214634c1b6f1d0a43ae8f3
* Remove useless callback in unix socket implementationArnaud Versini2013-01-112-16/+0
| | | | | Change-Id: Ibe46e2f1628f4d2e4840429703e0d5a69059a188 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* hack for apple's gcc-4.0.1 bugLuboš Luňák2013-01-091-0/+2
| | | | | | | My self-built 4.0.1 on Linux handles this fine, but 4.0.1 is not used for LO building except for MacOSX. This specific operand combination is rather unlikely, so this shouldn't actually cause any problem in practice, hopefully, but I'd still like to check this where possible.
* Argh, I thought I had compiled this;)Tor Lillqvist2013-01-061-2/+2
| | | | Change-Id: I5619e26e5afbe8e6532204feb60b87f6a7875ee0
* Streamline a bit for AndroidTor Lillqvist2013-01-061-4/+7
| | | | Change-Id: I8233f6409d75bff23738e121efcdbd340035da9d
* Handle APP_DATA_DIR for iOS, tooTor Lillqvist2013-01-061-0/+8
| | | | Change-Id: I7259358c917ef9e7cc93d8f6886c9a935887183b
* Bin obsolete commentTor Lillqvist2013-01-061-3/+0
|
* WaE: format specifies type 'int' but the argument has type 'sal_Int32' (aka ↵Tor Lillqvist2013-01-061-4/+4
| | | | 'long')
* Remove accidentally committed logging codeTor Lillqvist2013-01-051-3/+0
| | | | Change-Id: I8dc055336d1577475282198528a57efc60508cef
* Notice if SAL_LOG is changed while the process is runningTor Lillqvist2013-01-051-3/+14
| | | | | | | | | | | | | | | | | | | It used to call getenv("SAL_LOG") just once and assume it never changed. Sure, I don't expect that LO code will start changing SAL_LOG back and forth all the time. But it is definitely useful in our Android (and iOS) apps to be able to call for instance putenv("SAL_LOG=+WARN+INFO") as early as possible, before explicitly using any LO code. That used to work earlier, but not any more with the getEnvironmentVariable() thing, as the new logging mechanism gets called while initialising some static globals (i.e. before out app code had even started), and that then caused the one and only call to getenv("SAL_LOG"). This meant that we didn't get any debugging logging from SAL_INFO and friends in the Android app(s) any more. Change-Id: I932facff4118e5f016c95a4c1461e871184d3fc6
* gbuild: replace all use of PRODUCT with ENABLE_DBGUTILMichael Stahl2013-01-031-1/+1
| | | | | | | Also fix the wrong check in cppunit/ExternalProject_cppunit.mk which caused cppunit to always be built without -D_GLIBCXX_DEBUG. Change-Id: Ia247dcd84e2c6fa0e9384fd27643537984d980b5
* sal: use pread / pwrite on every *nixRiccardo Magliocchetti2013-01-031-36/+0
| | | | | | pread / pwrite don't look as a Linux and Solaris privilege. Change-Id: Ifb2e88445d4064c13a406007bfd523ae0caa38e5
* sw: fix loplugin warningsMiklos Vajna2013-01-021-0/+1
| | | | Change-Id: I090a51c112c960b8cc9b208bc7378a5aa3754552
* sal: missing jvmfwk in log-areasMiklos Vajna2013-01-021-0/+1
|
* Sigh, my git grep regexps missed some casesTor Lillqvist2012-12-271-3/+3
| | | | Change-Id: I085f14f40fb83cba171b35b14cf7c0d99091fc00
* Check for __GNUC__ instead of GCC in sourcesTor Lillqvist2012-12-273-3/+3
| | | | | | | | | 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