Commit Graph

31 Commits

Author SHA1 Message Date
Luboš Luňák
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
Chr. Rossmanith
8333cbf2a3 Remove RTL_CONSTASCII_(U)STRINGPARAM in pyuno
and use append() instead of appendAscii()

Change-Id: Iaf29a2f18eff39db5d1b5cc298cce23442ac51a9
2013-03-28 22:54:38 +01:00
Thomas Arnhold
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
Tor Lillqvist
d72a0b5c61 Check for __GNUC__ instead of GCC in sources
We still have checks for $(COM) being GCC or MSC in makefiles, of
course. But there is no reason to pass -D$(COM) to compilations.
Checking the built-in compiler-specific macros __GNUC__, _MSC_VER
(etc) is the right thing to do.

Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592
2012-12-27 13:38:15 +02:00
Michael Stahl
af2b7fac27 pyuno: fix handling of "str", "unicode", "bytes" types:
Replace currrent wrappers of Python 2 only PyString_* functions with
better abstractions that handle default "str" (PyStr_*) or byte strings
("str"/"bytes" depending on version, PyStrBytes_*) and adjust all
invocations to work on appropriate string types.
Fixes obvious "attributes typeName and/or value of uno.Enum are not
strings" exceptions with Python 3.

Change-Id: I255dcb1bc198fd7f6a62b83b957901521071a480
2012-11-25 16:06:40 +01:00
Michael Meeks
1d3e6bb6c4 re-base on ALv2 code. Removing:
a patch contributed by Pedro Giffuni to handle FreeBSD issues
    that are unlikely to be an issue with a two-layer LibreOffice.
    http://svn.apache.org/viewvc?view=revision&revision=1180509
2012-07-02 16:52:50 +01:00
Takeshi Abe
54a908a003 nuke unused defines
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-04 23:26:57 +09:00
David Bolen
742dca7366 fdo#46926: PyUNO_cmp: return acquired reference 2012-03-16 22:18:43 +01:00
Michael Stahl
06484b6946 fdo#46926: fix the fix for Python 3
Thanks to Maxime de Roucy for the hint that the "cmpfunc" type doesn't exist.
2012-03-09 15:40:00 +01:00
David Bolen
387389b644 fdo#46926: fix UNO struct comparison in Python 2
This requires setting a rich comparison flag in Python 2, while Python 3
uses rich comparison by default.
(regression from a09ce46818)
2012-03-07 11:17:13 +01:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Stephan Bergmann
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
Takeshi Abe
7958f8244c catch exception by constant reference 2011-12-21 21:57:54 +09:00
Lionel Elie Mamane
58aa95c944 Janitorial: remove unnecessary const_casts
The python C API has consts at these places
2011-08-21 01:46:09 +02:00
Michael Meeks
f85638485c don't crash when interacting with a class that implements XInvocation
VclStringResourceLoader eg.
    test = smgr.createInstance("com.sun.star.resource.VclStringResourceLoader")
    invocation = test.setValue("FileName", "test")

It seems we can't cope with XInvocation implementors, so give a nice
exception instead
2011-05-19 14:50:35 +01:00
Andreas Becker
a09ce46818 Port PyUno to support Python 3 2011-05-07 20:35:03 +01:00
Sebastian Spaeth
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
Jens-Heiner Rechtien
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
Vladimir Glazounov
b0bc9610a0 CWS-TOOLING: integrate CWS cmcfixes55
2009-03-03 10:04:14 +0100 cmc  r268711 : #i99765# silence warning
2009-03-02 12:18:48 +0100 cmc  r268647 : #i99772# silence warnings under >= python 2.6 and gcc 4.4
2009-03-02 10:51:12 +0100 cmc  r268641 : #i99767# fix up trivial && ||
2009-03-02 10:32:02 +0100 cmc  r268640 : #i99766 remove && || warning
2009-03-02 10:01:05 +0100 cmc  r268638 : #i99764# easy && || warnings
2009-02-27 13:03:08 +0100 cmc  r268583 : #i96059# fix dodgy code
2009-02-27 12:57:38 +0100 cmc  r268582 : #i99718# don't leave unused methods on non-win platform
2009-03-14 17:15:26 +00:00
Rüdiger Timm
42dd34e8b4 INTEGRATION: CWS changefileheader (1.11.12); FILE MERGED
2008/03/31 07:24:58 rt 1.11.12.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:32:21 +00:00
Kurt Zenker
b5eecfbc5c INTEGRATION: CWS pyunofixes4 (1.10.22); FILE MERGED
2007/07/30 19:43:44 jbu 1.10.22.1: adding pythonpath import functionality, fixed a gc deadlock, fixed some minor issues
2007-10-11 10:52:28 +00:00
Ivo Hinkelmann
2be908a0e6 INTEGRATION: CWS pyunofixes3_SRC680 (1.9.20); FILE MERGED
2006/11/06 18:11:11 pmladek 1.9.20.1: #i71078#
Fix allocating and deleting python objects
2006-11-14 17:21:24 +00:00
Jens-Heiner Rechtien
f1259dd5ec INTEGRATION: CWS warnings01 (1.6.16); FILE MERGED
2006/04/07 21:24:02 sb 1.6.16.5: RESYNC: (1.7-1.8); FILE MERGED
2005/11/10 09:12:37 pl 1.6.16.4: #i53898# removed warnings
2005/10/31 16:04:23 sb 1.6.16.3: #i53898# Made code warning-free.
2005/09/23 02:07:52 sb 1.6.16.2: RESYNC: (1.6-1.7); FILE MERGED
2005/09/09 15:31:16 sb 1.6.16.1: #i53898# Made code warning-free.
2006-06-20 04:03:05 +00:00
Oliver Bolte
a69acc3c83 INTEGRATION: CWS pyunofixes2 (1.6.12); FILE MERGED
2006/01/07 21:35:48 jbu 1.6.12.2: RESYNC: (1.6-1.7); FILE MERGED
2005/09/09 18:43:06 jbu 1.6.12.1: #i54416#,#i47270# added logging support for pyuno + refcounting bug for __members__ variable fixed
2006-03-22 09:48:07 +00:00
Rüdiger Timm
e6956feb11 INTEGRATION: CWS ooo19126 (1.6.14); FILE MERGED
2005/09/05 18:39:20 rt 1.6.14.1: #i54170# Change license header: remove SISSL
2005-09-08 15:51:33 +00:00
Jens-Heiner Rechtien
5b1e396d82 INTEGRATION: CWS pyunofixes1 (1.5.24); FILE MERGED
2004/12/19 20:57:54 jbu 1.5.24.1: #i31159# struct any members can now be assigned with uno.Any
2005-02-11 15:39:58 +00:00
Jens-Heiner Rechtien
b8dfabfb06 INTEGRATION: CWS geordi2q14 (1.4.12); FILE MERGED
2004/01/29 18:09:52 hr 1.4.12.1: #111934#: merge CWS ooo111fix2
2004-02-02 18:29:18 +00:00
Hans-Joachim Lankenau
0bde3353b1 INTEGRATION: CWS geordi2q01 (1.3.14); FILE MERGED
2003/08/18 13:04:05 hr 1.3.14.1: #i18350#: join changes from CWS ooo11rc3
2003-08-18 14:00:59 +00:00
Jörg Budischewski
89d55b843d #i12504# added PyUNO_invoke, removed the _print workaround, was crashing anyway 2003-05-24 22:26:45 +00:00
Jörg Budischewski
e0a1cd4dc7 fixed a deadlock 2003-05-24 10:00:56 +00:00
Jörg Budischewski
e80bdbafeb initial checkin for the pyuno-0.9.2 release 2003-03-23 11:12:59 +00:00