summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2013-03-31If you can't load a shared library it should be a warningPeter Foley1-1/+1
This has bitten me more than once when working on Library_merged. Change-Id: I829f5d010b6df2935fd191bdec9bac04bb003f16
2013-03-31Must percent-escape the APP_DATA_DIRTor Lillqvist1-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
2013-03-30fix loplugin unused warningsPeter Foley1-0/+4
Change-Id: I23fc6bf62e74f192f77c74ed48d5276737375f3c
2013-03-30OSL_FAIL -> SAL_WARNThomas Arnhold1-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>
2013-03-30fix loplugin warningsPeter Foley1-1/+9
Change-Id: I17593ac6e495213a1ef99d4d5525a6e38aee0bc7
2013-03-30Protect CoreGraphics.h inclusion with <premac.h>, sighTor Lillqvist1-0/+2
Change-Id: I9d16929d3b8fb5114e72eee850da64433394df9c
2013-03-30Draw the frame virtual device bitmaps directly to the destination CGContextTor Lillqvist1-2/+2
Much faster. No need for the pixelBuffer inbetween. Change-Id: I6493faca6da3a3e9a1285e00c887928b85dca56e
2013-03-30Refactor the iOS Viewer app and rename it to "LibreOffice"Tor Lillqvist1-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
2013-03-30Add lo_tap()Tor Lillqvist1-0/+1
Change-Id: I635be54c27c93de0a11be7bdd01979b99dadda28
2013-03-28Half-assed attempt at enforcing operator [] preconditionsStephan Bergmann2-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
2013-03-28add missing dep on sal/typesizes.hDavid Tardon1-0/+1
Change-Id: I45e2949bd50ef1b72e40f6dbc67a05bbbbeeeb5b
2013-03-28add missing deps on uwinapi headersDavid Tardon1-0/+5
Change-Id: I8a6d62a611879aaa6f6b823ecb11618c26e4123c
2013-03-27svx/source/inc/trace.hxx -> SAL_INFOStephan Bergmann1-0/+1
Change-Id: I019f41aeb41ec150087e6f544cff3b36719d1845
2013-03-27-Werror=unused-macrosStephan Bergmann1-0/+4
Change-Id: Ia02ff34be9eff80fd8f9d76f034d76c3791342f2
2013-03-27WaE: macro is not used: STACKTYPETor Lillqvist1-0/+2
Change-Id: If20c7637d13f37029e447e779586fcfad21c3305
2013-03-27At least Mac OS X SDK 10.7 doesn't experience TimeValue clash hereStephan Bergmann1-0/+4
(causes -Werror,-Wunused-macros, rather) Change-Id: I1dc05a5cf73aec7827df662342f5d9189215e64e
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann1-4/+7
Change-Id: Ibd06e49e78a6d6a69521a65b53b056e85b64765b
2013-03-27-Werror=unused-macros (Android)Stephan Bergmann1-1/+1
Change-Id: I7b88ff1a8c53fbb875d5cb84060c726fd7d06c9c
2013-03-27Hopefully _BSD_SOURCE not needed anywhere for MAP_ANONStephan Bergmann1-1/+0
(-Werror=unused-macros on Android) Change-Id: I393face32e7d4782b5c8037fa8ebeb21ec3c6e7a
2013-03-27-Werror=unused-macrosStephan Bergmann1-7/+0
Change-Id: I3c64ed78577988767a7da859e68a7f63f890f7dc
2013-03-27-Wunused-macrosStephan Bergmann5-40/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-26No need for a template hereStephan Bergmann1-39/+31
Change-Id: I43262c984c311fcb1e1a9eca9b4dec4092351dea
2013-03-26Could the failing MSVC tinderbox be due to implementation-defined /Stephan Bergmann1-2/+22
...for negative integers in < C++11? Rather unlikely, but lets see... Change-Id: I9abfcbf2c0e409fab4c77b62e5f734d3c2cc2719
2013-03-27Add log area 'vcl.headless'Tor Lillqvist1-0/+1
Change-Id: I40053b9a51c5a640b46c6d615a5d7e067a5e138a
2013-03-25remove external include guardsThomas Arnhold17-133/+16
Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
2013-03-26Fix bogus SAL_WARN useTor Lillqvist1-0/+1
unknown log area 'IMPL_LINK_NOARG(SwSaveLabelDlg, OkHdl) [loplugin], huh? Change-Id: I265102a552615208db43fc7b6617189ad99b6aad
2013-03-26Introduce temporary lo_set_view_size() hack like on Android and call itTor Lillqvist1-0/+1
Change-Id: I44df0946f59d1b9a2a6ea935b3c2ea3c96c1260d
2013-03-26Temporary hack for iOS: open files read-only if read-write open failsTor Lillqvist1-0/+12
Change-Id: Ifc400d9843b23ef942c43af3a2b8830ccff71a7e
2013-03-26Fix warning: unknown log area 'sw.docx' [loplugin]Tor Lillqvist1-1/+2
Change-Id: I0e97399220b2eb2da54072241ddee43a683d17ef
2013-03-25Add test case for toInt overflow detectionStephan Bergmann4-6/+78
Change-Id: I1c5b66888baac8aa1bc99c06579e0ef3638a4877
2013-03-25Handle oveflow in O(U)String::toInt() functionsZolnai Tamás1-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>
2013-03-25Clean up new toUInt64Stephan Bergmann5-6/+48
Change-Id: Ic908cb5cc9169ab1baae2c1c52070adfb9afba39
2013-03-25Fix warning: unknown log area 'chart2' [loplugin]Tor Lillqvist1-0/+4
Change-Id: Ifdfdc1869dbee46d507b552ed62364f6058888e2
2013-03-25Add some debugging printoutTor Lillqvist1-0/+4
Change-Id: Iea0decde41be8b9325b19651433f1b3b79f851a9
2013-03-23coverity#704247 Logically dead codeJulien Nabet1-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>
2013-03-22WaE: unused functionsTor Lillqvist1-0/+6
Change-Id: I3014f75e9f5969902c5bb6cecad9286841e158e6
2013-03-22clean up DBG_ERRORnThomas Arnhold1-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>
2013-03-22For convenience, include config_global.h in sal/config.hStephan Bergmann5-15/+7
...which must be included first thing everywhere anyway. Change-Id: Idbbf941b526f48a89d6398e19404b1ff0e23a6b4
2013-03-21Re-work the vcl aspects of the iOS portTor Lillqvist2-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
2013-03-21std::min() parameters must be of same typeTor Lillqvist1-1/+1
Change-Id: If8ac23dcf2a9e5811c1b2fe84c92d78cdfbc825b
2013-03-21Kill fprintf in sdext in favour of SAL_LOGThorsten Behrens1-0/+1
Change-Id: I2253c1a4d90ab348764cd8863b8aaf2036a254de
2013-03-20Deprecate confusing rtl::OUString::compareToAscii(asciiStr, maxLength)Stephan Bergmann2-13/+7
Change-Id: I3a41036ec03cdaefea94b19dbedf59e5a5e37dc8
2013-03-20use #if instead of #ifdef for testing config_xxx.hxx macrosLuboš Luňák13-30/+30
http://lists.freedesktop.org/archives/libreoffice/2013-March/047769.html Change-Id: I81ed4500878ff3193e028410a1f0205e28d17fc3
2013-03-19further OUString cleanupThomas Arnhold2-6/+5
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold7-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>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold11-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>
2013-03-18cleanup doxygen warningsPeter Foley19-101/+153
Change-Id: I9181cad5bfa93f9e8b3d944b2b50a3ccc0b42595
2013-03-18Use InterlockedIncrement() and InterlockedDecrement() unconditionallyTor Lillqvist2-120/+0
Much simpler. Change-Id: I6837f95121f881d6265eb65343f6b311c1a6c33f
2013-03-15fprintf -> SAL_WARNStephan Bergmann1-0/+1
Change-Id: Ifab1415fafa93551d8bed1e77c38f04bec8d2eba
2013-03-15Improve debug messagesStephan Bergmann1-0/+1
Some of those SAL_WARNs might actually better be SAL_INFOs; please change if they hit too often. Change-Id: I2a3b9bd485586b7878194f84bc734b54ce69bc06