summaryrefslogtreecommitdiff
path: root/cppuhelper
AgeCommit message (Collapse)AuthorFilesLines
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin1-1/+1
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-11Don't call Manager::addProvider(null) upon optional NoSuchFileExceptionStephan Bergmann1-3/+1
Change-Id: I62e953c886886158f227362fef7048459192217b
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-2/+2
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-1/+1
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11remove unnecessary use of OUString constructorNoel Grandin3-23/+23
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-04remove redundant calls to OUString constructor in if expressionNoel Grandin1-9/+9
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
2013-11-04Convert code that calls OUString::getStr()[] to use the [] operatorNoel Grandin1-2/+2
This also means that this code now gets bounds checked in debug builds. Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-10-31solver doesn't solve anything...Michael Stahl1-16/+1
... it is an abbreviation of "Solar Version". Since nobody can remember that: remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath and any mention thereof. Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad Reviewed-on: https://gerrit.libreoffice.org/6515 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-24cppuhelper: remove obsolete Package_unorcMichael Stahl3-40/+0
Change-Id: I4d513b69527ac21949f03b847a4638b92aef0a3e
2013-10-23remove RTL_CONSTASCII_(U)STRINGPARAMChr. Rossmanith9-178/+98
Change-Id: I0bce921bfc7102b9a33b1c87eee3ddec0ebaed7b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with one little typo fix
2013-10-23convert code to use OUString::endsWithNoel Grandin2-4/+2
Convert places that call aStr[aStr.getLength()-1] == 'x' to use the shorter form aStr.endsWith("x") Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
2013-10-20Some clean-upStephan Bergmann1-215/+92
Change-Id: I8ab23a4b09f9d31ed49c98cdbbf1abc0e684358a
2013-10-20Clean-up std::bad_alloc handlingStephan Bergmann1-186/+116
...post 0bc89aac4c64bb833e387657f680e194c26aef97 "cppumaker: Allow UNO interface functions to throw std::exception." Change-Id: I232a1b266a45d39856d44a2f4e012b5df10fa880
2013-10-13Minor refactoring of iOS codeTor Lillqvist1-1/+1
Rename functions so that functions called by the UI layer for actions to happen in the LO layer and functions called by the LO layer for things to happen in the UI layer use different prefixes. Move declarations to the generic <touch/touch.h> and avoid iOS-specific types in the API. Change-Id: Ieb8979065e02a87c4a415c934163265f2790d011
2013-10-11Not being able to honor a "prefix" is a rather hard errorStephan Bergmann1-1/+1
It happens when an extension has just been live-deployed into the running soffice process and then trying to instantiate out-of-process in an additional uno process one of that extension's shared library components and that component ---erroneously---uses the "prefix" feature. (Which can be reproduced with the mysql-connector-ooo.oxt extension, --enable-ext-mariadb-connector: "rm -rf instdir/*/share/extensions/mysql-connector-ooo", "instdir/*/program/soffice workdir/*/Extension/mysql-connector.oxt", install the per-user, then "File - New - Database - Connect to an existing database: MySQL - Next >> - Connect directly - Next >> - Database name: foo - Server / Port - Server: bar - Next >> - Test Connection", crash.) Change-Id: Ibab2ad31199eec5dc26ffa337a5e3e7490f782d7
2013-10-05URE folder path fixes for the HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE caseTor Lillqvist1-8/+10
Change-Id: I5019cce2172db7b3ac74e25f5ea9dc62e9fd03f8
2013-10-01WaE: 'rPath' : unreferenced formal parameterTor Lillqvist1-0/+1
Change-Id: I35aee7a1f8c2d79ac275262ba0cd002e4d034c95
2013-10-01prevent WaE with unused parametersMarkus Mohrhard1-0/+2
2013-10-01[API CHANGE] Stricter requirements for shlib.hxx function argumentsStephan Bergmann1-93/+24
rLibName -> uri must be an (absolute file) URI, rPath must be empty, and xKey must be null in loadSharedLibComponentFactory. While incompatible in theory, these functions should only be called internally, anyway. Change-Id: Iab144b199e4e7db62358283efec6877a5da19bab
2013-10-01[API CHANGE] Remove unused cppu::invokeStaticComponentFactory againStephan Bergmann2-29/+21
...that has neither been intended for external use anyway, nor has it ever been used internally since its dead-on-arrival inception in b16ab7a751c04049b4171df412f1ef0f4f9b02f2 "Add invokeStaticComponentFactory() for statically linked components: Will be used for iOS at least." Sigh. Change-Id: I17795b2a1945809688deba0a5492415fbe877400
2013-10-01All the content of cppuhelper/source/compat.cxx must be in namespace cppuStephan Bergmann1-2/+2
Change-Id: I30dde10d1c299dbd9c0b2cb2fa025ce432df6cce
2013-10-01[API CHANGE] Remove unused CPLD_ACCESS feature from C++/Java component loadersStephan Bergmann1-169/+1
...introduced in 2000 with 38974aeef6dfaa1c625cf5498ec553489dd08c87 "added library loading limitation by using env variable CPLD_ACCESSPATH=path1;path2; etc." and 9be3c618e0b1d2b2635bd7b134693ed5ff3021bc "#80090# restrict jar file access to java system property com.sun.star.comp.loader.CPLD_ACCESSPATH" but already in 2004 considered "a hack [that] seems to be unused nowadays" in 1d3164df959b31ba9f50ddc108569f3adec32ff7 "CWS sb20: #i29119# Replaced sandbox.jar-based class loader with an own one." Change-Id: I637afd5daeb4ca097edd17f834c81af892dcfc6a
2013-09-30Special-case Mac OS X .jnilibStephan Bergmann1-1/+5
Change-Id: I824e83271997888712f126f4197252d7beefccc1
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara3-0/+9
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-09-22gbuild: make the versioned library the linktarget on UnixesMichael Stahl1-1/+1
If there is a SOVERSION then the versioned library is a real file and the unversioned one just a symlink; better to have the real file be the target. - add gb_Library_UDK_MAJORVER variable for SOVERSION - remove version parameter of gb_Library_set_soversion_script; instead hardcode the SOVERSION since it must be included in the file name in gb_Library_FILENAMES anyway - store the unversioned symlink in the ILIBTARGET variable - via new gb_Library_get_workdir_target_versionlink function - removed gb_Helper_install call that resulted in both versioned and unversioned libs in instdir Change-Id: I2c6f1698f0e39fdb2c07964d43ed9485cbca0b30
2013-09-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann1-7/+2
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
2013-09-16Set URE_INTERNAL_JAVA_DIR for unorc to allow jvm in unit tests.Andrzej J.R. Hunt1-0/+1
Currently unit tests run in solver, the unorc in solver is simply copied from cppuhelper/source/unorc, which doesn't set URE_INTERNAL_JAVA_DIR, hence the jvm cannot be loaded in Unit tests. (For comparison the URE unorc in instdir is copied from ure/source/uno{rc,.ini} and contains the appropriate java paths.) (URE_INTERNAL_JAVA_CLASSPATH is not needed, at least currently.) Change-Id: I5911c9a22c92e0e20c98d0e51d5b14e020c8ec10 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, slightly modified
2013-09-12Use OUString::startsWith where possibleStephan Bergmann1-2/+2
Change-Id: I3f3b7b3600aa097187b05e21c375d087a2fa92bb
2013-09-12Pass by const refStephan Bergmann2-6/+7
Change-Id: Iacbb07d6478901be77feb253f526614800564c0f
2013-09-10gbuild: use xml .rdb files directly from workdirMatúš Kukan1-1/+1
Change-Id: I876a41dc77a59841c39b2c1fa43f22c20940dbf2
2013-09-07s/wiki.services.openoffice.org/wiki.openoffice.org/gAndras Timar1-1/+1
Change-Id: I059fbee385a109069c70f3869021c8e2ee48fee1
2013-09-04UNO interface UIKs are unused for a very long timeStephan Bergmann1-3/+1
...so mark them as @deprecated more thoroughly and always force them to zero. Change-Id: I5db2dab924fc5a4145a0e5dd055b654985ce2ef9
2013-09-03Can unify this now it seemsTor Lillqvist1-8/+0
Change-Id: I2fd0e1967028ad6632b39dfaaf377c7186a89229
2013-09-03Update a few library namesTor Lillqvist1-4/+4
Change-Id: I17c575ce0d4ba55a47a97d86c69a00ef7f822838
2013-08-24build on higher debug levelsCaolán McNamara1-0/+1
Change-Id: I7f4d85f3e26ab8b19dae05c6907840b97a8af1d6
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-2/+2
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21OString’ was not declared in this scopeCaolán McNamara1-0/+1
Change-Id: I753d725963c6f617e4c2d2bd775152a7369fd977
2013-08-19Prefer using declarations over using directivesStephan Bergmann10-16/+26
Change-Id: I1316fc4ae1d4dab91684bdc059f5c69c5e0c401a
2013-08-19Use upcasting Reference copy ctorStephan Bergmann2-5/+5
Change-Id: Iab00310e2e6fcf8a43617363cf095a1bccfd9751
2013-08-18Adapt for HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURETor Lillqvist1-0/+14
Change-Id: I598efffda7be77171cdff9d3d5b8705972cfba18
2013-08-02Mark as constTakeshi Abe1-1/+1
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-06-29remove OUString wrap for string literalsThomas Arnhold1-12/+12
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-05use uno::Reference#clear() method...Noel Grandin1-1/+1
...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
2013-05-16Support for annotations in the new UNOIDL formatStephan Bergmann1-7/+8
...used for now to transport @deprecated information. Also, improve Idx-String (formerly Idx-Name, but also used for UTF-8 annotations now) format, using the 0x80000000 for the indirection rather than the base case. (And the README erroneously used "Offset of" Idx-String all over the place.) Change-Id: I7003b1558ab536a11a9af308f9b16a7ef8840792
2013-05-10Resolves: #i122208# introduce rtl::CStringHash and rtl::CStringEqualHerbert Dürr1-17/+1
unify the various c-string compares and hashes. (cherry picked from commit b7e3470a154538a92f0a21b14e726d75723f4a92) Conflicts: oox/inc/oox/export/shapes.hxx oox/source/export/shapes.cxx sal/inc/rtl/string.hxx sdext/source/minimizer/pppoptimizertoken.cxx svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx vcl/source/glyphs/gcach_ftyp.cxx writerfilter/source/resourcemodel/TagLogger.cxx xmloff/source/draw/EnhancedCustomShapeToken.cxx Change-Id: Ib742744077bfb4d38a462d88b44bdef45601b4ae
2013-05-08Don't call code in UNO object ctor that throws UNO exceptionsStephan Bergmann4-11/+14
...with Context set to this, that leads to refcounting bugs. Change-Id: I4875dbe4ccb5a7bcfaa8370b14d4eab83c21d0e5
2013-05-06cleanup whitespaces due to RTL_CONSTASCII_USTRINGPARAM removalPhilipp Riemer1-20/+10
In e2e2cc61144cb22227eebfadff0ea24b51ccfbd0 the method was removed automatically leaving several line breaks etc. as visual noise.
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák5-39/+22
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-02Adapt to library name changes for Android, tooTor Lillqvist1-13/+7
Change-Id: I6da1f38c5a9693c13ef841442cbef017d388416a
2013-05-01Library names have changed thanks to the "layer" changesTor Lillqvist1-6/+6
Change-Id: I764702510b612da478959f457f95e6040c22f998