summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2015-03-16tdf#89361 Remove remnants of Gopher supportAdolfo Jayme Barrientos
Change-Id: Ib2038a43b0d49a525199329a2c79d5779f5322fa Reviewed-on: https://gerrit.libreoffice.org/14471 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-03-13CppCheck cleaning : avoid static string comparisonMichaël Lefèvre
Change-Id: I6a7375901fcec63892041aec8cc2d55ce7789724 Reviewed-on: https://gerrit.libreoffice.org/14848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-12sal: add comment re: V718 'CreateThread' should not be called from 'DllMain'Michael Stahl
Change-Id: I6e444e6c3dd4f5e158fe9b649b97ccb5ca32c3a7
2015-03-11better way to check for empty stringsMarkus Mohrhard
Change-Id: Ib52b3f958e9e346194d4427bf59c6f62ee8ed105 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-03-05sal: replace usage of deprecated socket functionsMichael Stahl
inet_ntoa, gethostbyname, gethostbyaddr are all deprecated in the Windows SDK 8.1; use the replacement functions unless targetting WinXP. Change-Id: Ic290ce925835c97f0ca0c611d1fd2675d0045ec7
2015-03-05sal,sd: use newer InetPtonW API when not building for WinXP targetMichael Stahl
... i.e. decide based on target instead of SDK version. Change-Id: I225588d34f961c19e223ed9c1b9a934cd5196cf7
2015-03-03TyposJulien Nabet
Change-Id: I0aef0c185457687aa0e40a4a1e8024d9e691093f
2015-03-03Work around missing InetPtonWStephan Bergmann
...in certain Windows build environments (whatever it is exactly that causes some Windows builds to fail with "error C3861: 'InetPtonW': identifier not found" while others succeed). Unclear what the original reason was for setting _WIN32_WINNT here, but removing it hopefully does not break anything. Change-Id: I83222ad010d428cf2b9c447760ea47381552d04a
2015-03-02Turn function-like macro into true functionStephan Bergmann
Change-Id: I70330b1f4844f33779f814377afaf90e0a219b1d
2015-03-02typoStephan Bergmann
Change-Id: Ifc03631b126ec19cb98cb42a258ca4880e868385
2015-03-02V805: Decreased performanceCaolán McNamara
Change-Id: I822c5ebc321ebda87c238a1781a31793c1623e34
2015-03-02V804: Decreased performanceCaolán McNamara
Change-Id: I53c2d11e81edb3f6d00984b3dc90994af5765164
2015-02-28Typo: excute->executeJulien Nabet
Change-Id: I8c73d95d92dc4a30dd6a71260817ab4fc3096f27
2015-02-23tdf#88835 Calc: General format: 2 digits in exponentLaurent Balland-Poirier
Create 4 new formats enums rtl_math_StringFormat: rtl_math_StringFormat_E1, rtl_math_StringFormat_E2, rtl_math_StringFormat_G1, rtl_math_StringFormat_G2 to 1 or 2 digits in exponent for scientific notation. Set General format to use rtl_math_StringFormat_E2. Set trendline equation in status bar to use rtl_math_StringFormat_E1 Change-Id: I41466a6d4ba808ba5b9b38ba252b37c6b4560f12 Reviewed-on: https://gerrit.libreoffice.org/14562 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-02-23remove unnecessary parenthesis in return statementsNoel Grandin
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
2015-02-16sal: -Werror=unused-parameterMichael Stahl
Change-Id: Iad2a1c7796812e09c408868d7fa60705a1cc91be
2015-02-16Related: tdf#63690 - add stubs for removed rtl_logfile functions.Thorsten Behrens
This fixes up 3d403f2af2e5b7d26254d45590764f279450fab6, by not removing public API. Change-Id: I60a4b7284661238bdf32a1600f27a7e507c5374a
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-16It is not necessary to be _that_ verbose.Jan Holesovsky
Change-Id: Ie7685beae20df8b3798070135fad529cde3604a9
2015-02-14Related: tdf#63690 - remove rtl_logfileThorsten Behrens
This was unused since the earlier cleanup. Change-Id: Ia56641c4242037a0ce501e43939b8dc862499f0e
2015-02-12coverity#1268298 mark up codeCaolán McNamara
Change-Id: I6e48e2593f93efd71e84a076a99457c3daf7d9e0
2015-02-11coverity#1267660 etc.: remove redundant checksStephan Bergmann
...all these functions take a "handle to a created condition." Change-Id: I043f310801452b05e6daaca4d246b305d18f6104
2015-02-08coverity#1267668 Logically dead codeCaolán McNamara
Change-Id: Id9458f55efa4d27914c24b8ab7c4ced081e19626
2015-02-08make this a comment a coverity quellerCaolán McNamara
Change-Id: I0eccec058f506be69f6c95a1a6d97be64cb734bc
2015-02-07coverity#1268297 Logically dead codeCaolán McNamara
Change-Id: Ie9a37e7eb837abf0d2783a9a0f8c2b33a6772d33
2015-02-06O[U]StringBuffer::appendUninitialized unit testsStephan Bergmann
Change-Id: I55f0a5bd01a3e250764e1eb34d674b535b85b56f
2015-02-06Remove bogus assertsStephan Bergmann
...regression introduced with b0ef5cf258f3a84054c052f0a09a208dbc17fdf3 "sal: add some argument checking assertions for strings and buffers" not being aware of 186990395d72a803dd4a9f087fe4e05f49e69ad2 "Clean up Mac _imp_getProcessLocale: Introduces OUStringBuffer::appendUninitialized." Change-Id: I828d98eb52f57f4e39e71ded39ef034e1788f4d1
2015-02-05sal: add some argument checking assertions for strings and buffersMichael Stahl
Also remove some now redundant asserts from headers. Some of these actually trigger on unit tests so are commented out. Change-Id: I07c6b2b2bd175361691a141f22eec584e3ab8f0b
2015-02-05convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara
and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
2015-02-05Updated all precompiled headers.Ashod Nakashian
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-02-03Let's use log tags starting with "sal" here in salTor Lillqvist
2015-02-03Let's use log tags starting with "sal" here in salTor Lillqvist
Change-Id: I89e71e03ede5175fabe1df949b8d3200f64757a0
2015-02-03Improve loggingTor Lillqvist
Change-Id: Iabfe272e95e4f3517f3072dd6c36b8889c2fdbd1
2015-02-03Fix typoTor Lillqvist
Change-Id: I4f96972255ca99debd53d4302073d1823cc27492
2015-02-03Improve logging, change OSL_TRACE into SAL_WARN and SAL_INFOTor Lillqvist
Change-Id: I37a0003ca321ca788f7885eb9fdea69ed388a35d
2015-02-03Bin stupid macro that was used just onceTor Lillqvist
Change-Id: I2e7528cb374d621f148d559c51521013bba62477
2015-02-03Bin code that has been commented out since initial importTor Lillqvist
Change-Id: Ie96cf3043b126577087eadae5900489a5eb84bcf
2015-02-02warning C4701: potentially uninitialized local variable 'Addr' usedStephan Bergmann
Change-Id: I63c22fb682175edc450b1ce3b6ea78cf5a5bc2f1
2015-01-29Extract loplugin:redundantcast from loplugin:cstylecastStephan Bergmann
Change-Id: I08f17dd9cc092206083ff41bbbc178e0322e86d0
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2015-01-28Clean up implementation of osl_getSymbol et alStephan Bergmann
Change-Id: Ic71b7bc8e8b5783deb1f9fa89136537c24281a55
2015-01-28This typedef is not unusedTor Lillqvist
Fix fallout from fe480d8136b204c8dc6c68916cce7e816f8b9c48. Change-Id: I36807f0e43311e66f4ccd3542a4c064d5ccd7430
2015-01-28remove unused typedefsNoel Grandin
found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-26Visible function type RTTI for Clang -fsanitize=functionStephan Bergmann
...by adding some further SAL_DLLPUBLIC_RTTI type annotations (cf. b4f6b26b5a1a78fecfa95ec2eb7ac8b80495d8aa "SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVM") and by making sure relevant function types do not use incomplete types in their parameter and return types (which would make the RTTI hidden). Change-Id: Id7aadcbc0704b9759968ae36266fc9ce11a2e340
2015-01-26sal,sd: Windows SDK 8.1 deprecates inet_addr()Michael Stahl
Change-Id: I443f73fab48f1b66b38e2c77af0fe89f99ee4cd0 Reviewed-on: https://gerrit.libreoffice.org/14142 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-01-22loplugin:cstylecast (MACOSX)Stephan Bergmann
Change-Id: I9d798beba649a946446893063386a8e521455a48
2015-01-21Avoid reinterpret_cast to same typeStephan Bergmann
...as GCC 4.6 reports "error: invalid cast from type 'pthread_t {aka long unsigned int}' to type 'long unsigned int'" despite [expr.reinterpret.cast]/2: "An expression of integral, enumeration, pointer, or pointer-to-member type can be explicitly converted to its own type; such a cast yields the value of its operand." Change-Id: I26f1a3e6df2f0e55c665ad4f49185e0ebf432e95
2015-01-21loplugin:cstylecast (on Mac OS X, where pthread_t is a pointer type)Stephan Bergmann
Change-Id: Ie4474a1bae02de88ea0c79510f3730d2f829239c
2015-01-20Fix for Android gethostbyaddrStephan Bergmann
Change-Id: Icc8f5f71f07d0afb016b6188daea26068db93769
2015-01-20Missing constStephan Bergmann
Change-Id: I13058a46526a1186deaa8fffde303c272c0cc8aa