Commit Graph

83 Commits

Author SHA1 Message Date
9c9f0ea2c3 Include RTTI in generated vtables for ubsan's vptr-based checks
...though only on gcc3_linux_x86-64 for now.

Change-Id: Id90554425e78b38a5a97149f2a7d3ac04cbe0c9b
2014-08-07 18:21:19 +02:00
ebc0a15515 remove more unnecesary OUString constructor use
when throwing exceptions

Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-29 09:01:40 +02:00
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
a8a195c9e7 fdo#68849 Add header guards to bridges/* files.
Change-Id: I8599908ccf1aba9a0843eb41dc16c21455acc5ba
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-12 09:49:18 +01:00
6660b9d2c5 Remove visual noise from bridges
Change-Id: I53fa23d335ff62795f09f9838d4064cea71aeb65
Reviewed-on: https://gerrit.libreoffice.org/8237
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01 05:21:45 -06:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
82625bb98e remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
    buf.append( static_cast<sal_Unicode>('!') );
to:
    buf.append( '!' );

Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2014-01-07 09:43:37 +02:00
e036d4b706 Spell "indices" correctly
Change-Id: I63b1de195bf2f3f8bfd185181f48b1520cdd849f
2013-10-02 21:57:42 +03:00
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
ec2512209d the header file new.h is obsolete on our platforms
(cherry picked from commit 94e277e997d396ae44e4c13c806fa0f461dafd83)

Conflicts:
	sw/source/core/text/portxt.hxx

Change-Id: Ia785878f2b96704fcf858599afba2535b53d6b6f
2013-06-08 16:36:20 +01: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
7dac241ca0 Remove RTL_CONSTASCII_(U)STRINGPARAM in bridges
Change-Id: Id8777ee7f587846399e95cf3b1b37d669a76bae5
Reviewed-on: https://gerrit.libreoffice.org/3139
Reviewed-by: Christina Roßmanith <ChrRossmanith@web.de>
Tested-by: Christina Roßmanith <ChrRossmanith@web.de>
2013-04-02 20:25:44 +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
a3ce60eb3c We only support MSVC 2008 (_MSC_VER 1500) or later
We can drop or simplify many conditionals.

Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28 20:53:40 +02:00
17ff7b41d1 re-base on ALv2 code. Includes:
Patches contributed by: Armin Le Grand.
    #118558# Correcting OLE attributes of LO3.4 at load time by loading as OOo3.3, details see task.
    http://svn.apache.org/viewvc?view=revision&revision=1195906
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166
    #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles
    http://svn.apache.org/viewvc?view=revision&revision=1293316
    #119337# Solves the wrong get/setPropertyValue calls in
    SvxShapeText (and thus in SvxOle2Shape)
    http://svn.apache.org/viewvc?view=revision&revision=1344156

    Patches contributed by Mathias Bauer (and others)
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i117717#: remove wrong assertion
    http://svn.apache.org/viewvc?view=revision&revision=1172349

    Patch contributed by Herbert Duerr
    goodbye Registration and License dialogs, don't let the door hit you
    http://svn.apache.org/viewvc?view=revision&revision=1172613
    help gcc 4.6.0 on 32bit ubuntu 11.10"
    http://svn.apache.org/viewvc?view=revision&revision=1245357

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

Revert "sb140: #i117082# avoid unncessary static class data members
    commit 21d97438e2944861e26e4984195f959a0cce1e41.
remove obsolete FreeBSD visibility special case.
retain consolidated BSD bridge code, remove OS/2 pieces.
2012-11-15 16:06:08 +00:00
10511acd08 Revert "sb140: #i117295# use rtl::Static"
This reverts commit d3794d2d8ab2ee3f8118d61538bb753335b37f23.

Conflicts:
	bridges/source/cpp_uno/cc50_solaris_intel/except.cxx
	bridges/source/cpp_uno/cc50_solaris_sparc/except.cxx
	bridges/source/cpp_uno/gcc3_ios_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_arm/except.cxx
	bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx
2012-11-15 16:06:07 +00:00
61c0a3a63d switch bridges to gbuild
Change-Id: Ia19ff61f1f7fb446298472acd6722b57ddaeddec
2012-09-22 08:15:30 +02:00
bdc909b07d re-base on ALv2 code. 2012-06-19 18:00:37 +01:00
4dc45a2854 remove include of pch header in bridge 2011-11-27 12:56:37 -06:00
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
d3794d2d8a sb140: #i117295# use rtl::Static 2011-09-09 17:46:39 +02:00
02c70c3b93 WaE: tweak for simple-minder compilers 2011-04-07 10:01:38 +01:00
aac09aee67 move bridges to boost::unordered_map 2011-02-04 00:02:36 +01:00
acf1b8ee70 Commit 64-bit Win32 C++ bridge files
Just copies of the 32-bit ones so far, so obviously don't compile
even. No in-line assembly in 64-bit MSVC for instance.
2011-01-17 03:52:12 +02:00
36e2296bf8 Replace all occured, occurance etc. 2010-12-06 09:16:29 +00: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
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
3757bab3be INTEGRATION: CWS changefileheader (1.13.100); FILE MERGED
2008/03/28 16:30:39 rt 1.13.100.1: #i87441# Change license header to LPGL v3.
2008-04-11 10:00:08 +00:00
46fa3f820b INTEGRATION: CWS changefileheader (1.6.122); FILE MERGED
2008/03/28 16:30:39 rt 1.6.122.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:59:36 +00:00
13f6f4d9a3 INTEGRATION: CWS changefileheader (1.15.32); FILE MERGED
2008/03/28 16:30:39 rt 1.15.32.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:59:17 +00:00
b02223fc64 INTEGRATION: CWS changefileheader (1.16.98); FILE MERGED
2008/03/28 16:30:38 rt 1.16.98.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:58:59 +00:00
c8da3d8193 INTEGRATION: CWS changefileheader (1.2.48); FILE MERGED
2008/03/28 16:30:38 rt 1.2.48.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:58:07 +00:00
bea06df5b7 INTEGRATION: CWS changefileheader (1.19.12); FILE MERGED
2008/03/28 16:30:38 rt 1.19.12.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:57:50 +00:00
1f54716c34 #i10000# bracket missing 2008-02-28 07:24:06 +00:00
dec9aeb53f INTEGRATION: CWS ia64port01_DEV300 (1.17.82); FILE MERGED
2008/02/18 11:20:25 cmc 1.17.82.1: #i84999# follow sb's suggested pattern
2008-02-27 09:02:44 +00:00
124b8367bf INTEGRATION: CWS sb71 (1.13.14); FILE MERGED
2007/08/23 16:02:40 sb 1.13.14.2: RESYNC: (1.13-1.14); FILE MERGED
2007/06/14 15:04:36 sb 1.13.14.1: #i75466# Adapted to new APP|SHLnRPATH.
2007-10-15 10:58:55 +00:00
30f6f8c5b2 INTEGRATION: CWS unomacli64 (1.13.10); FILE MERGED
2007/06/20 10:29:46 kr 1.13.10.1: fixed: #i78284#
2007-07-18 11:15:37 +00:00
28e75017a6 INTEGRATION: CWS unomacli64 (1.1.2); FILE ADDED
2007/06/20 10:29:46 kr 1.1.2.1: fixed: #i78284#
2007-07-18 11:15:23 +00:00
edf6bed0a6 INTEGRATION: CWS mingwport03 (1.12.72); FILE MERGED
2006/09/19 11:50:49 vg 1.12.72.1: #i53572# MinGW port
2007-03-26 12:15:33 +00:00
267e569d56 INTEGRATION: CWS obo05 (1.14.74); FILE MERGED
2006/09/08 07:24:58 dbo 1.14.74.2: #i53611# msvcr80.dll cleans up thrown exception
2006/09/07 14:18:35 dbo 1.14.74.1: #i53611# adopting offset for accessing current exception in msvcr80.dll
2006-09-25 11:51:09 +00:00
0a9fd26152 INTEGRATION: CWS pchfix02 (1.12.22); FILE MERGED
2006/09/01 17:17:38 kaib 1.12.22.1: #i68856# Added header markers and pch files
2006-09-16 14:55:20 +00:00
56cf9150ab INTEGRATION: CWS pchfix02 (1.14.70); FILE MERGED
2006/09/01 17:17:38 kaib 1.14.70.1: #i68856# Added header markers and pch files
2006-09-16 14:55:05 +00:00
67f119fdd9 INTEGRATION: CWS pchfix02 (1.16.22); FILE MERGED
2006/09/01 17:17:37 kaib 1.16.22.1: #i68856# Added header markers and pch files
2006-09-16 14:54:51 +00:00
f8bbf09f82 INTEGRATION: CWS warnings01 (1.10.100); FILE MERGED
2006/02/28 15:00:33 sb 1.10.100.3: #i53898# Made code waring-free.
2005/09/22 18:26:30 sb 1.10.100.2: RESYNC: (1.10-1.11); FILE MERGED
2005/09/09 12:37:40 sb 1.10.100.1: #i53898# Made code warning-free.
2006-06-19 22:45:18 +00:00
8cd0aae271 INTEGRATION: CWS warnings01 (1.5.4); FILE MERGED
2006/02/28 15:00:33 sb 1.5.4.1: #i53898# Made code waring-free.
2006-06-19 22:45:05 +00:00
367e9d5289 INTEGRATION: CWS warnings01 (1.14.4); FILE MERGED
2006/05/26 13:42:18 sb 1.14.4.3: #i53898# Made code warning-free and/or compile at all after resync to SRC680m170.
2006/05/23 23:05:49 sb 1.14.4.2: RESYNC: (1.14-1.15); FILE MERGED
2006/02/28 15:00:33 sb 1.14.4.1: #i53898# Made code waring-free.
2006-06-19 22:44:53 +00:00
98cd209529 INTEGRATION: CWS mhu12 (1.14.38); FILE MERGED
2006/04/19 12:55:33 sb 1.14.38.1: #i47132# Adapted to new functionality from rtl/alloc.h to obtain executable memory for the raw vtable blocks (which contain code snippets together with the vtables).
2006-05-02 11:06:41 +00:00
d363b8a19b INTEGRATION: CWS ooo19126 (1.10.98); FILE MERGED
2005/09/05 17:07:34 rt 1.10.98.1: #i54170# Change license header: remove SISSL
2005-09-07 21:33:28 +00:00
e2ddef446e INTEGRATION: CWS ooo19126 (1.4.112); FILE MERGED
2005/09/05 17:07:34 rt 1.4.112.1: #i54170# Change license header: remove SISSL
2005-09-07 21:33:13 +00:00