summaryrefslogtreecommitdiffstats
path: root/sal
Commit message (Collapse)AuthorAgeFilesLines
* Asserting rtl::O[U]StringBuffer::operator [] preconditionsStephan Bergmann2013-04-032-2/+10
| | | | | | ...and fixing two call-sites. Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
* vcl: convert some fprintf to SAL_INFOThomas Arnhold2013-04-021-0/+2
| | | | | | | Change-Id: I4b9a20e62e8e137a1bfaa1c654307f15c33e3d3c Reviewed-on: https://gerrit.libreoffice.org/3143 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* If you can't load a shared library it should be a warningPeter Foley2013-03-311-1/+1
| | | | | | This has bitten me more than once when working on Library_merged. Change-Id: I829f5d010b6df2935fd191bdec9bac04bb003f16
* Must percent-escape the APP_DATA_DIRTor Lillqvist2013-03-311-1/+1
| | | | | | | On the iOS Simulator it contains spaces, as in /Users/tml/Library/Application Support/iPhone Simulator/6.1/Applications/9A6DFE86-77AF-4B78-8FFB-93FCA6C38EE1/LibreOffice.app Change-Id: I90c76b909901c881aa51482880b1120fea19b99b
* fix loplugin unused warningsPeter Foley2013-03-301-0/+4
| | | | Change-Id: I23fc6bf62e74f192f77c74ed48d5276737375f3c
* OSL_FAIL -> SAL_WARNThomas Arnhold2013-03-301-2/+5
| | | | | | | Change-Id: I1871e5e3a319b2d5177ae4bd470046c022c14eb7 Reviewed-on: https://gerrit.libreoffice.org/3121 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* fix loplugin warningsPeter Foley2013-03-301-1/+9
| | | | Change-Id: I17593ac6e495213a1ef99d4d5525a6e38aee0bc7
* Protect CoreGraphics.h inclusion with <premac.h>, sighTor Lillqvist2013-03-301-0/+2
| | | | Change-Id: I9d16929d3b8fb5114e72eee850da64433394df9c
* Draw the frame virtual device bitmaps directly to the destination CGContextTor Lillqvist2013-03-301-2/+2
| | | | | | Much faster. No need for the pixelBuffer inbetween. Change-Id: I6493faca6da3a3e9a1285e00c887928b85dca56e
* Refactor the iOS Viewer app and rename it to "LibreOffice"Tor Lillqvist2013-03-301-1/+3
| | | | | | | | | | No, it isn't any closer to being "ready" despite the name, but still, using the current approach, it clearly isn't restricted to be just a viewer. Also drop the verbose LOViewer prefix from class and file names in it. Change-Id: Ib4e8a31d6fa1b35169ee98cf2aa8f0f22957164c
* Add lo_tap()Tor Lillqvist2013-03-301-0/+1
| | | | Change-Id: I635be54c27c93de0a11be7bdd01979b99dadda28
* Half-assed attempt at enforcing operator [] preconditionsStephan Bergmann2013-03-282-2/+16
| | | | | | | | | ...inspired by comments to <https://gerrit.libreoffice.org/#/c/3068/> "String::AppendAscii cleanup in dbaccess," but it quickly becomes apparent that lots of code rely on s[s.getLength()] == 0, so live with a weakened precondition check for now. Change-Id: Ifad96c706b14433df4a084ab8054b32433b8b5b6
* add missing dep on sal/typesizes.hDavid Tardon2013-03-281-0/+1
| | | | Change-Id: I45e2949bd50ef1b72e40f6dbc67a05bbbbeeeb5b
* add missing deps on uwinapi headersDavid Tardon2013-03-281-0/+5
| | | | Change-Id: I8a6d62a611879aaa6f6b823ecb11618c26e4123c
* svx/source/inc/trace.hxx -> SAL_INFOStephan Bergmann2013-03-271-0/+1
| | | | Change-Id: I019f41aeb41ec150087e6f544cff3b36719d1845
* -Werror=unused-macrosStephan Bergmann2013-03-271-0/+4
| | | | Change-Id: Ia02ff34be9eff80fd8f9d76f034d76c3791342f2
* WaE: macro is not used: STACKTYPETor Lillqvist2013-03-271-0/+2
| | | | Change-Id: If20c7637d13f37029e447e779586fcfad21c3305
* At least Mac OS X SDK 10.7 doesn't experience TimeValue clash hereStephan Bergmann2013-03-271-0/+4
| | | | | | (causes -Werror,-Wunused-macros, rather) Change-Id: I1dc05a5cf73aec7827df662342f5d9189215e64e
* -Werror=unused-macros (Android)Stephan Bergmann2013-03-271-4/+7
| | | | Change-Id: Ibd06e49e78a6d6a69521a65b53b056e85b64765b
* -Werror=unused-macros (Android)Stephan Bergmann2013-03-271-1/+1
| | | | Change-Id: I7b88ff1a8c53fbb875d5cb84060c726fd7d06c9c
* Hopefully _BSD_SOURCE not needed anywhere for MAP_ANONStephan Bergmann2013-03-271-1/+0
| | | | | | (-Werror=unused-macros on Android) Change-Id: I393face32e7d4782b5c8037fa8ebeb21ec3c6e7a
* -Werror=unused-macrosStephan Bergmann2013-03-271-7/+0
| | | | Change-Id: I3c64ed78577988767a7da859e68a7f63f890f7dc
* -Wunused-macrosStephan Bergmann2013-03-275-40/+0
| | | | Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
* No need for a template hereStephan Bergmann2013-03-261-39/+31
| | | | Change-Id: I43262c984c311fcb1e1a9eca9b4dec4092351dea
* Could the failing MSVC tinderbox be due to implementation-defined /Stephan Bergmann2013-03-261-2/+22
| | | | | | ...for negative integers in < C++11? Rather unlikely, but lets see... Change-Id: I9abfcbf2c0e409fab4c77b62e5f734d3c2cc2719
* Add log area 'vcl.headless'Tor Lillqvist2013-03-271-0/+1
| | | | Change-Id: I40053b9a51c5a640b46c6d615a5d7e067a5e138a
* remove external include guardsThomas Arnhold2013-03-2517-133/+16
| | | | Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
* Fix bogus SAL_WARN useTor Lillqvist2013-03-261-0/+1
| | | | | | unknown log area 'IMPL_LINK_NOARG(SwSaveLabelDlg, OkHdl) [loplugin], huh? Change-Id: I265102a552615208db43fc7b6617189ad99b6aad
* Introduce temporary lo_set_view_size() hack like on Android and call itTor Lillqvist2013-03-261-0/+1
| | | | Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
* Temporary hack for iOS: open files read-only if read-write open failsTor Lillqvist2013-03-261-0/+12
| | | | Change-Id: Ifc400d9843b23ef942c43af3a2b8830ccff71a7e
* Fix warning: unknown log area 'sw.docx' [loplugin]Tor Lillqvist2013-03-261-1/+2
| | | | Change-Id: I0e97399220b2eb2da54072241ddee43a683d17ef
* Add test case for toInt overflow detectionStephan Bergmann2013-03-254-6/+78
| | | | Change-Id: I1c5b66888baac8aa1bc99c06579e0ef3638a4877
* Handle oveflow in O(U)String::toInt() functionsZolnai Tamás2013-03-251-0/+8
| | | | | | | | | | | | Return 0 when overflow. The base idea in unsigned case is checking wheather (Max-nDigit)/nRadix < n But for efficency, take out nDiv = Max/nRadix from loop and corrigate it with -1 if needed. In signed case use minimum value if the number is negativ. Change-Id: I5b77580adbf12421b6c4b785ba9bc2a080accba2 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Clean up new toUInt64Stephan Bergmann2013-03-255-6/+48
| | | | Change-Id: Ic908cb5cc9169ab1baae2c1c52070adfb9afba39
* Fix warning: unknown log area 'chart2' [loplugin]Tor Lillqvist2013-03-251-0/+4
| | | | Change-Id: Ifdfdc1869dbee46d507b552ed62364f6058888e2
* Add some debugging printoutTor Lillqvist2013-03-251-0/+4
| | | | Change-Id: Iea0decde41be8b9325b19651433f1b3b79f851a9
* coverity#704247 Logically dead codeJulien Nabet2013-03-231-4/+1
| | | | | | | | Change-Id: Iaefddeb816d36d4a07234d903fafab3d6b83e1d2 Reviewed-on: https://gerrit.libreoffice.org/2952 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
* WaE: unused functionsTor Lillqvist2013-03-221-0/+6
| | | | Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
* clean up DBG_ERRORnThomas Arnhold2013-03-221-0/+1
| | | | | | | | | | | | | Those were DBG_ERRORn before and were falsely changed to OSL_TRACE by me. See: 1707a350af8a0909ae88c2b11deb714f8b2a93ff 533f89e49395bbc31baaab9ade46db934b383e14 Change-Id: I4f4188ba25b988128a539542f49797ea6985702e Reviewed-on: https://gerrit.libreoffice.org/2900 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* For convenience, include config_global.h in sal/config.hStephan Bergmann2013-03-225-15/+7
| | | | | | ...which must be included first thing everywhere anyway. Change-Id: Idbbf941b526f48a89d6398e19404b1ff0e23a6b4
* Re-work the vcl aspects of the iOS portTor Lillqvist2013-03-212-26/+32
| | | | | | | | | | | | | | | Don't try to use similar code as for OS X to manage windows, events etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in the Android port, use the "headless" vcl backend. Do keep using CoreText, though, not FreeType & fontconfig. Start changing the iOS "Viewer" app to correspond to the Android "desktop" app (so it should be renamed). Work in progress since a long time, several crucial details still missing, but committing for now. Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
* std::min() parameters must be of same typeTor Lillqvist2013-03-211-1/+1
| | | | Change-Id: If8ac23dcf2a9e5811c1b2fe84c92d78cdfbc825b
* Kill fprintf in sdext in favour of SAL_LOGThorsten Behrens2013-03-211-0/+1
| | | | Change-Id: I2253c1a4d90ab348764cd8863b8aaf2036a254de
* Deprecate confusing rtl::OUString::compareToAscii(asciiStr, maxLength)Stephan Bergmann2013-03-202-13/+7
| | | | Change-Id: I3a41036ec03cdaefea94b19dbedf59e5a5e37dc8
* use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák2013-03-2013-30/+30
| | | | | | http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
* further OUString cleanupThomas Arnhold2013-03-192-6/+5
| | | | Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
* removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold2013-03-197-15/+15
| | | | | | | | | s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold2013-03-1911-61/+56
| | | | | | | | | | | Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* cleanup doxygen warningsPeter Foley2013-03-1819-101/+153
| | | | Change-Id: I9181cad5bfa93f9e8b3d944b2b50a3ccc0b42595
* Use InterlockedIncrement() and InterlockedDecrement() unconditionallyTor Lillqvist2013-03-182-120/+0
| | | | | | Much simpler. Change-Id: I6837f95121f881d6265eb65343f6b311c1a6c33f