summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2013-04-22Avoid warnings from compilerplugins/clang/sallogareas.cxxStephan Bergmann1-19/+6
Change-Id: Icce3ffd29398a3488e7704562a4e9064f106b393
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks31-731/+124
2013-04-22Revert "fdo#62096: Replaced some compareTo with =="Fridrich Štrba2-7/+7
This reverts commit dd47994722eaead16099145e593fbf878072d52b.
2013-04-22fdo#62096: Replaced some compareTo with ==Sameer Deshmukh2-7/+7
Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c Reviewed-on: https://gerrit.libreoffice.org/3509 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19sal: remove obsolete test/unloadingMatúš Kukan5-1139/+0
Change-Id: I76ede5abd4662aaa2f5b01739da07cf3169ddb69 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-19better use SAL_LOG_INFO as triggerBjoern Michaelsen1-1/+1
Change-Id: I37635f9bd86d194b303705a58d81502d7d586692
2013-04-19Add pan gesture handlingTor Lillqvist1-0/+1
I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e
2013-04-18forward RTL_CONTEXT_foo logging to SAL_INFO in default debuggingBjoern Michaelsen1-3/+21
* RTL_CONTEXT_foo is originally intended to be used for performance measurement, but mostly unused right now * however its macros are sprinkled all over the codebase and might provide good help for ad-hoc debugging, and prevent SAL_INFO duplication * if there is no performance logging, these macros are now forwarded to SAL_INFO with logarea "logfile" or "$AREA.logfile" Change-Id: I495c8924e5b55124f7eac68eccda074d0740c117 Reviewed-on: https://gerrit.libreoffice.org/3421 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-04-17fdo#62096 - replace some O(U)String compareTo with ==Artur Dryomov1-1/+1
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d Reviewed-on: https://gerrit.libreoffice.org/3422 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17Update pchAurimas Fišeras1-2/+0
Change-Id: Ice80350184f7a514d5beab0a5e1da5b98d5733e4 Reviewed-on: https://gerrit.libreoffice.org/3427 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17-Werror=unused-macros (MinGW, sal)Stephan Bergmann8-23/+2
Change-Id: I7c0411320798721e70de32580de6adcf5565f12a
2013-04-16Further clean-up related to removed library unloading featureStephan Bergmann3-126/+41
Change-Id: I1ec2aa4d0ed0940e7c0a26a18c78f2df4693d278
2013-04-16API CHANGE: remove some of useless rtl/unload.h functionalityMatúš Kukan3-560/+29
Change-Id: If32923e35ef97f42d5203975362e5c76948ff327 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-15No need for Android, iOS or CROSS_COMPILING conditionals for unit testsTor Lillqvist3-10/+0
We don't run unit tests when cross-compiling anyway and since d4ea8c6b7ee32dfbe1525cae45ad44d411052c33 the corresponding .mk files aren't even read by Make. Change-Id: Icbee9ad51841d515a551e67708d9594358ce7e71
2013-04-15tune up debug level required for popping up dialogs from MSVCRTDMichael Stahl1-1/+1
Change-Id: I3cfa050ecf5c3c2ec66b11519c30d48459a9cafe
2013-04-15fdo#60724 correct spellingThomas Arnhold1-4/+4
Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
2013-04-15fdo#60724 successfull -> successfulThomas Arnhold1-1/+1
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-15fdo#60724 correct spellingThomas Arnhold4-4/+4
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15fdo#60724 correct spellingThomas Arnhold4-4/+4
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-15fdo#60724 informations -> informationThomas Arnhold1-1/+1
Change-Id: Ifd34ebfc7fe01b4a470eb072597dd3ec97c97863
2013-04-14Add lo_keyboard_input()Tor Lillqvist1-0/+1
Change-Id: I5904f673de9854af47eefac2f192295a281c5525
2013-04-13simplify makefilesDavid Tardon1-6/+4
Change-Id: I11ea8814d36cdc6d6838ec80b0bbb272d3116b2d
2013-04-13simplify generation of *_allheaders.hxxDavid Tardon2-21/+11
There are some differences in the generated headers: cppu_allheaders.hxx now explicitly includes #include <com/sun/star/uno/Any.h> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/genfunc.h> #include <com/sun/star/uno/genfunc.hxx> #include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Type.h> #include <com/sun/star/uno/Type.hxx> sal_allheaders.hxx now does not (explicitly) include #include <cppunittester/protectorfactory.hxx> #include <internal/rtllifecycle.h> #include <osl/detail/android-bootstrap.h> #include <osl/detail/component-mapping.h> #include <osl/detail/file.h> #include <osl/detail/ios-bootstrap.h> #include <pch/precompiled_sal.hxx> Change-Id: Ide3c708ac66f23b360b8e130790f8fa8f1911082
2013-04-13install SDK headers from filelistsDavid Tardon4-11/+15
... which allows us to drop gb_ZipPackage. Change-Id: Ib19f774c63d9b83ec07e99f963533eee431cc53a
2013-04-10pgsql-sdbc: set tablename even if we do not know the schemaLionel Elie Mamane1-0/+1
Change-Id: I74c04e1262cc413696a12aca9af603beded7b07f
2013-04-10sal: that TimeValue define causes -Wunused-macros with 10.6 SDK tooMichael Stahl1-6/+0
So since that is the new baseline let's get rid of it. Change-Id: I7b645fe2f6e641012919a87b63d5e14acce9e52b
2013-04-10Revert "If you can't load a shared library it should be a warning"Stephan Bergmann1-1/+1
This reverts commit 8b561c0012546aabbaff33b32a79833997aa8902. There are legitimate cases for osl_loadModule to fail (like when UNO only resorts to indirect bridging via binary UNO once it has not found a direct bridge implementation), so this adds too much noise. (Rather add SAL_WARNs to those places up the call stack where it is known to be an error, and/or enable +INFO.sal.osl.)
2013-04-10Clean up documentationStephan Bergmann1-8/+8
Change-Id: Icc53c25400acb46070fead08f7602295599fc6c8
2013-04-10Introduce characters utilities in rtl/character.hxxArnaud Versini4-29/+155
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with slight modifications to sal/inc/rtl/character.hxx: * Replaced "#pragma once" with explicit include guard for now. * Missing includes. * Cosmetic clean-up. Change-Id: I94d01cd4e766f92c70f941839a67101fa2c97654
2013-04-09no mkdtemp on AIX eitherCaolán McNamara1-1/+1
Change-Id: I9103f86a5b8414c9cdf5fd3a2d662725343f0ed8
2013-04-08WaE: unused variable 'insertion'Tor Lillqvist1-0/+1
Change-Id: I57d39d7535d88045dcb0d7b665675074b7059d14
2013-04-08Check for the C++11 "final" specifier and introduce SAL_FINALTor Lillqvist1-0/+12
I think it is useful to use SAL_FINAL mainly as a documentation aid, to make it clear to a code reader when a class is not expected to be derived from, and when a virtual function is not expected to be overridden in a derived class. Possibly there is also some class of bugs that using SAL_FINAL will help find? Change-Id: I45002f020dcb52e8a9f2962ff98780f2b80627af
2013-04-08fdo#43157 - Clean up OSL_ASSERTRadu Ioan1-0/+8
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: I41444e90a22bad7d04d3827914d4d793b3601304 Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-07fix up c code after move to c++Caolán McNamara1-5/+7
Change-Id: Id3de792f47c778c7a79cc9160ca3480affcaf3cf
2013-04-05new module i18nlangtagEike Rathke1-1/+4
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05No need to setenv SAL_LOG in the code for iOSTor Lillqvist1-3/+3
One can set environment variables to be used when debugging an app in Xcode, which is when it is interesting to see SAL_INFO output anyway. (This is very different from Android, where one can't set environment variables "before" an app starts, as apps there aren't separate programs that would be exec'ed.) Change-Id: I3971d1b2d1a849deac2722a90271ef2458db1643
2013-04-04remove HAVE_SFINAE_ANONYMOUS_BROKENLuboš Luňák6-135/+1
Since we no longer support the old Apple SDK using gcc-4.0.1, we can remove the cruft to work around its problems. Woohoo. Change-Id: Idf275e76449443f1f0314e75dab993f213a77eb7
2013-04-03fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTRadu Ioan1-0/+1
- replaced osl_trace with sal_info - added new log areas to log-area.dox Change-Id: I20f539bd9fa62bef2e9a2a82b59e0b15f4efdd48 Reviewed-on: https://gerrit.libreoffice.org/3179 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-03Asserting rtl::O[U]StringBuffer::operator [] preconditionsStephan Bergmann2-2/+10
...and fixing two call-sites. Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
2013-04-02vcl: convert some fprintf to SAL_INFOThomas Arnhold1-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>
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