Commit Graph

388 Commits

Author SHA1 Message Date
ba0a57702c remove OUString wrap for string literals
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-29 21:52:54 +00:00
e2e2cc6114 remove usage of RTL_CONSTASCII_USTRINGPARAM
Mechanical removal of usage together with OUString ctor, done
by compiler plugin.

Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06 16:51:45 +02:00
336353a87e Related rhbz#867808: More apparently bogus "throw new ..." in C++ code
Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
2013-04-16 15:01:42 +02:00
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
b2f8318dbd simplify OUString assignments
Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb
Reviewed-on: https://gerrit.libreoffice.org/2863
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
2013-03-20 10:28:58 +00:00
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
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-19 10:48:30 +00:00
8b27d78b4a automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings
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-19 09:00:26 +00:00
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
c29098917a Get rid of (most uses of) GUI
GUI only takes values UNX or WNT, so it is fairly pointless. One can check
whether OS is WNT or not instead.

Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34
Reviewed-on: https://gerrit.libreoffice.org/1304
Reviewed-by: Peter Foley <pefoley2@verizon.net>
Tested-by: Peter Foley <pefoley2@verizon.net>
2012-12-25 17:53:25 +00:00
9d7c1dcbbb re-base on ALv2 code. Includes:
Patches contributed by Ocke Janssen
   converted reportdesign.
   http://svn.apache.org/viewvc?view=revision&revision=1396797
   http://svn.apache.org/viewvc?view=revision&revision=1394326

   Patch contributed by Oliver Rainer-Wittmann
   sw34bf06: #i117783# - Writer's implementation of XPagePrintable -
   apply print settings to new printing routines
   http://svn.apache.org/viewvc?view=revision&revision=1172115
2012-12-06 09:12:57 +00:00
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
90eac3e697 API CHANGE remove [oneway] method attributes
Remove non-functional and broken [oneway] attributes from all idl
files. Change idl compiler to no longer digest such idl.

Change-Id: Ie14c5012beccb6242d7cd592d434a88091b695d1
2012-11-30 14:36:35 +01:00
6111068d52 testtools: add com.sun.star.test.performance.XPerformanceTest ...
... back, which was removed from udkapi in
771914ab1482af600b11dfe789182604802d1046.

Change-Id: I266f2d4fd01dc01a839f5c608ec8c45be76165c0
2012-11-28 16:56:16 +01:00
b6831de354 sal_Bool->bool in testtools
Change-Id: I716c0a08565e874bcb0667e72ed5261231a4743d
2012-10-04 21:29:34 +02:00
750fc20611 replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c
Reviewed-on: https://gerrit.libreoffice.org/671
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-25 01:55:38 +00:00
5bfa5cb86a Fix duplicate branches for if and else
Change-Id: Ic602fd4df63e6807f49c256ce7849ae587eeb82d
2012-09-16 10:24:59 +02:00
6bf09ecf1d Java cleanup, remove unnecessary imports
I guess I missed some last time :-)

Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
2012-09-10 23:43:38 +02:00
975866d592 Java cleanup, make package name match folder name
Change-Id: I4229ea7a4ad4d669db824e14ee6a8acb2ac205a0
2012-09-05 21:01:47 +02:00
753e9b3d45 udkapi, offapi: do not use #include "foo":
Evidently on Windows, the newfangled ucpp handles #include "foo"
differently from #include <foo> and treats it as a relative path, while
the angle brackets always result in absolute paths.
Since relative paths result in infinite rebuilds if make is invoked in a
different directory, don't use #include "foo" in IDL files.

Change-Id: Iedcda3a4be5542389a0be086f14541cda8dc5323
2012-07-30 20:49:09 +02:00
15f85977d1 drop useless announcement
Change-Id: I0e94f44c27bbcb9d1ab12ae4f3f00e89d5388d69
2012-07-12 13:30:52 +02:00
b9042fad7c re-base on ALv2 code.
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21 15:00:05 +01:00
b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
f713237cc3 targeted string re-work
Change-Id: I81e04e43efd512d88b904cdd5b7fdd5aa54eea02
2012-06-01 06:30:57 -05:00
b396546834 cleaning up dmake stuff
Change-Id: I85d1ffef06028f8781a0406ea6e43b0e0406413c
2012-05-29 07:35:17 +02:00
268ddf9675 WaE: pesky aliasing warning with gcc 4.7.0
Change-Id: I78675ba624cf657a246f7d1211bf5075189ac873
2012-05-25 09:26:13 +01:00
85c2f280ef Revert "i hope this is fixed now"
This reverts commit b8044cb828af149a4598b35a4d46d8fe4205ae74.

84dbc4fe2547f8fc341a46d7f000e721c81e63ee fixed the bridge for PPC on Linux, not
Mac OS X.
2012-04-23 14:18:24 +02:00
b8044cb828 i hope this is fixed now 2012-04-23 13:51:51 +02:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
094cf7caf9 Fix delivery of jvmfwk ini/data files
...that are (also) used during the build (e.g., cd testtools/*/lib &&
./bridgetest_inprocess_java).  Broken by gbuild'ification of jvmfwk.
2012-03-26 17:47:19 +02:00
a3bf3451a9 WaE: arrayIndexOutOfBounds 2012-02-21 20:57:06 +01:00
777f63d448 method should be public 2012-02-19 13:42:04 +00:00
99bf0c318b add a uno test api with more than 8 floating point args
I'm a cruel person, i.e. this targets the TODO of
dab11f7fe2a2fa4155e4c4feaa5fc54e57cfbd37 in
bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cx
2012-02-17 12:21:36 +00:00
a6ed487d97 Decrease verbiage a little bit 2012-01-27 15:52:23 +02:00
7c704c78d3 Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones.  To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
2012-01-21 15:21:16 +01:00
81e50fb2e3 Fix for fdo43460 Part XXXIX getLength() to isEmpty()
Part XXXIX
Modules
testtools, toolkit, tools
2012-01-16 18:49:04 -02:00
6a8f6c4b13 Removed extra semicolons 2011-12-15 16:38:50 +00:00
7904a8cc56 I don't see NO_BSYMBOLIC being used anywhere 2011-12-11 02:57:59 +02:00
3c9d6bdbc6 remove include of pch header from testtools 2011-11-27 13:25:25 -06:00
eedfbf5b8b fdo#42865: let's try map file for windows only 2011-11-18 22:24:21 +01:00
6f55d5eaec Do build stuff here also when cross-compiling (but don't run) 2011-11-17 17:46:15 +02:00
5057892990 Fix unintentional glitch 2011-11-17 17:46:15 +02:00
469c9ac2f9 Enforce a "lib" prefix for UNO components for Android
This commit for the old build system. (Don't bother for components not
relevant for Android.)

The Android package installer (as invoked through "adb install", from
"ant debug install") silently ignores native libraries in app packages
(.apk files) whose names don't start with "lib" and end with ".so".

The package builder (as invoked through "ant debug") in the SDK gladly
includes also thusly named native libraries in the .apk, though. Yay
for consistency.
2011-11-17 15:22:59 +02:00
4f11d0aa46 Revert the component.map removal from makefile to fix Windows build. 2011-11-17 00:38:25 +01:00
c506e1852a fdo#42865: cppu,cppuhelper,testtools: no mapfile
Instead, build with VISIBILITY_HIDDEN.
2011-11-15 20:52:00 +01:00
bf1f0183d5 Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64). 2011-10-18 23:10:56 +02:00
50205b9d19 Remove component_getImplementationEnvironment 2011-07-12 12:26:18 +02:00
e634f62b39 Don't do anything when cross-compiling for now 2011-06-12 13:01:12 +03:00
a3c69425d0 Remove OS/2 support 2011-04-28 08:27:16 +02:00
a27728407e Easyhack: Add visibility markup to all component_get* functions 2011-04-21 15:28:34 +02:00
5775fc2091 catch by const reference 2011-04-13 09:57:50 +01:00