Commit Graph

148 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
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
6dddefc6e7 fdo#43460: use isEmpty()
Change-Id: Ia768e684d3cf255239c04d024b35488830cc9fe6
2013-03-09 21:47:31 +01: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
c95f6b679a remove obsolete stdidlclass. 2012-12-06 09:12:57 +00:00
2171077c0c Introduce cppu::supportsService helper, adapt some call-sites
...more to follow (easy hack?)

Change-Id: Icb02626495701a3905c124c7368b98c3258e91b2
2012-09-14 19:32:30 +02:00
adc49a81e9 remove empty ascii boxes and stuff
Change-Id: Ied91b5b298f0cfad0d3408c3cbb87c7bd1b83247
2012-08-07 18:08:29 +02:00
df645a2bd8 There is not need to allocate memory just for getting the 'indexOf'
a literal within a OUString.

Change-Id: I01ca30c68228f81b3d313dfca5b975448f3c4fc7
2012-07-16 11:33:05 +01:00
9a9a6750c5 .def files don't need executable bits
Change-Id: I5dfc43bdd4d8490a47c718dc49acba0ca5f7b526
2012-06-22 22:39:29 +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
135c63c8f9 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-04 15:52:57 +02:00
e2c11d5fcc Remove extra parenthesis 2012-04-18 22:48:01 +02:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
6f087d103a removed duplicate includes in cppcanvas / cppuhelper / cui 2012-03-30 00:42:35 +09:00
2a1171929e chmod -x 2012-03-21 13:00:45 +02:00
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
89b4260fc9 GUI is also UNX for Mac, to check for Mac use either OS→MACOSX or GUIBASE→aqua 2011-12-13 01:59:12 +01:00
7904a8cc56 I don't see NO_BSYMBOLIC being used anywhere 2011-12-11 02:57:59 +02:00
c10fb61c1a remove include of pch header in cppuhelper 2011-11-27 13:03:19 -06:00
23b04dae8b sb140: #i117698# no implementations of XIdlClassProvider remain, so code that checks for it can be removed 2011-09-12 22:47:49 +02:00
15f10fc946 Remove component_getImplementationEnvironment 2011-07-12 16:30:06 +02:00
08d3fdffae Easyhack: Add visibility markup to all component_get* functions 2011-04-21 16:06:40 +02:00
35e1b53c7e Remove OS/2 support. 2011-04-18 16:59:48 +02:00
5a7f6793ac Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...) 2011-03-19 14:12:37 +01:00
933e22880b Remove "using namespace ::rtl" 2011-03-02 21:53:12 +01:00
d0285c06d3 cppcheck: set these as public 2011-02-16 21:20:05 +00:00
83734eea36 Clean up makefiles 2011-02-04 12:45:54 +01:00
1a6617cf05 Clean up makefiles 2011-02-01 18:22:56 +01:00
f2abd69d6a get this to build again 2011-01-14 15:15:22 +00:00
c34bae9706 Some cppcheck cleaning 2011-01-12 12:54:06 +00:00
36e2296bf8 Replace all occured, occurance etc. 2010-12-06 09:16:29 +00:00
9f9e65ec9c fix invalid XML 2010-11-24 14:20:12 +01:00
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
sb
2e24fc7415 sb118: merged in DEV300_m72 2010-02-25 12:46:45 +01:00
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
sb
f4d7dfdfba sb118: #i108776# changed addsym.awk to also export STLport num_put symbols, and simplified it by requiring that first section is labeled UDK_3_0_0; adapted map files accordingly, replacing many individual ones with solenv/src templates 2010-01-29 17:01:54 +01:00
ffd6952e9a #i103452#: replace PRODUCT by !DBG_UTIL; replace assert by OSL_ASSERT where possible 2009-07-10 14:03:42 +02:00
cefbf94117 INTEGRATION: CWS changefileheader (1.6.6); FILE MERGED
2008/03/28 15:25:29 rt 1.6.6.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:45:40 +00:00
7fd783557c INTEGRATION: CWS changefileheader (1.4.88); FILE MERGED
2008/03/28 15:25:29 rt 1.4.88.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:45:25 +00:00
644f1a1700 INTEGRATION: CWS changefileheader (1.2.50); FILE MERGED
2008/03/28 15:25:29 rt 1.2.50.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:45:07 +00:00
9e2c22d044 INTEGRATION: CWS changefileheader (1.3.38); FILE MERGED
2008/03/28 15:25:29 rt 1.3.38.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:44:30 +00:00
5c67302aa0 INTEGRATION: CWS changefileheader (1.3.42); FILE MERGED
2008/03/28 15:25:28 rt 1.3.42.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:44:11 +00:00
6013d17437 INTEGRATION: CWS changefileheader (1.2.50); FILE MERGED
2008/03/28 15:25:28 rt 1.2.50.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:43:52 +00:00
495d8fb98f INTEGRATION: CWS changefileheader (1.3.38); FILE MERGED
2008/03/28 15:25:28 rt 1.3.38.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:42:54 +00:00
a6f923e053 INTEGRATION: CWS changefileheader (1.5.72); FILE MERGED
2008/03/28 15:25:28 rt 1.5.72.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:42:35 +00:00
fe279b774f INTEGRATION: CWS changefileheader (1.8.72); FILE MERGED
2008/03/28 15:25:28 rt 1.8.72.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:42:17 +00:00