Commit Graph

64 Commits

Author SHA1 Message Date
b854de954f deprecate oustringostreaminserter.hxx
the intent of this header has canged over time. now it is already
systematically included with ustring.hxx and the operator overload it
provide fit nicely there...

Just to be safe, since that include as been added to the api during the
3.5 timeframe and therefore is already in 'production'
the header remain and simply attempt to include ustring.hxx
but a warning is issued indicating that this header should not be used
anymore... in a couple of major release we will thenr emove it completely

All internal users of that header are converted.

Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad
Reviewed-on: https://gerrit.libreoffice.org/634
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-18 10:10:06 +00:00
195f17ee40 migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomic
Change-Id: I0e6992afbeffaf3b993e6630fb396d93012890e0
Reviewed-on: https://gerrit.libreoffice.org/632
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-17 14:26:12 +00:00
850d9be56d Bin no longer used iOS cppunit stuff that breaks build even
Change-Id: I78c71b22816834c66c8283e3d85e357b7b8d2836
2012-08-01 19:19:04 +03: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
6080259862 allow using rtl::OUString etc. simply as OUString, without rtl::
http://lists.freedesktop.org/archives/libreoffice/2012-April/029940.html

The RTL_USING #define (set by gbuild for anything that's not public
API) allows to use such classes simply by their name, without having
to use the namespace or do explicit using rtl::OUString (which half
of the sources do anyway).

Change-Id: I7edaf12cd278489cdc1d5ff782f0a86361c13c0a
2012-07-16 16:03:03 +02:00
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
46b8dbda43 re-base on ALv2 code. 2012-06-26 21:48:59 +01:00
c3a6a57fc2 re-base on ALv2 code. 2012-06-13 14:18:29 +01:00
9e7d5cd530 cppu: use InternalUnoApi 2012-04-09 21:04:37 +02:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
6e67c03dc0 Enable -Wnon-virtual-dtor for GCC 4.6
...which has the necessary features to support it.

Change a lot of classes to either contain a protected non-virtual dtor
(which is backwards compatible, so even works for cppumaker-generated
UNO headers) or a public virtual one.

cppuhelper/propertysetmixin.hxx still needs to disable the warning, as
the relevant class has a non-virtual dtor but friends, which would still
cause GCC to warn.

Includes a patch for libcmis, intended to be upstreamed.
2012-03-14 13:32:02 +01: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
63141d21b1 -Werror=sign-promo fixes 2011-12-19 11:33:12 +01:00
051fdda153 cppu: convert to gbuild
Because of unit tests is here custom target where are idl files
processed.
2011-12-19 10:14:51 +01:00
24b4c075d5 remove include of pch header in cppu 2011-11-27 13:02:56 -06:00
70a6b9ffbd New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.
* New SAL_INFO..., SAL_WARN... macros.
* New SAL_STREAM supersedes OSL_FORMAT.
* oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now).
* TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site
  cleanup).
* Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet
  addressed.
* Some replacements tools String -> rtl::OUString.
2011-11-22 09:41:47 +01:00
c506e1852a fdo#42865: cppu,cppuhelper,testtools: no mapfile
Instead, build with VISIBILITY_HIDDEN.
2011-11-15 20:52:00 +01:00
e3712f9d35 Fix build --all depend=x. 2011-11-14 11:50:26 +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
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
1c69052b52 Bypass building the iOS cppu_unittester_all for now
We can't build it here at this point during the build after all. We
use static linking on iOS, and we would need to link with -lgcc3_uno
from bridges which has not been built yet. It seems that any
meaningful unit tests for iOS actually need to be built in a
"subsequent" stage.
2011-09-20 16:59:05 +03:00
d996328cd5 sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed out a6913c9677c2
For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-12 22:47:50 +02:00
07ded12adc Use OBJCXXFLAGS instead of duplicating it 2011-08-01 14:47:08 +03:00
46bd39b0d3 Add statically linked cppu unit test for iOS 2011-08-01 00:59:09 +03:00
e224ac0e31 use rm -f to not complain about attempting to remove nonexisting file 2011-06-13 16:27:50 +02:00
28bff17eac Can't run any qa when cross-compiling 2011-06-05 02:23:46 +03:00
1fa55878d9 restore cppunit test, Sequence ctor from sal_Int32 is now explicit 2011-03-18 21:49:26 +00:00
a4632bb6a2 only test this on certain archs 2011-03-18 13:37:29 +00:00
16d941cb03 Add PowerPC to the right branch 2011-03-18 14:30:33 +01:00
71dee2f153 move cppumaker test to cppu 2011-03-15 13:41:19 +00:00
5f66037d6d remove empty TESTSHL2LIB 2011-02-24 20:44:46 +00:00
81ef04be69 Trying to remove the stlport mention from the code 2011-02-09 19:58:43 +01:00
30a8393e50 Removing the ext_std masterpiece 2011-02-09 19:58:43 +01:00
31ca64f91e Remove double line spacing and correct indentation 2011-01-29 15:39:11 +01:00
d1d16c48ff fix break on parallel build 2011-01-15 18:10:49 +01:00
387b321092 cppunit: port these tests over to canonical cppunit 2011-01-14 15:36:53 +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
sb
6c036b980c sb118: #i109791# improved CPPUNIT_CFLAGS handling 2010-03-04 22:13:08 +01:00
2e10c0e2fc sb118: add missing CFLAGS+= $(CPPUNIT_CFLAGS) to loads of other makefiles, too 2010-03-04 00:11:19 +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
6ea0304b45 #i103496#: split cppunit in a pure external lib and a lib depending on sal -> testshl2 2009-09-14 19:06:55 +02:00
8f9181922c CWS-TOOLING: integrate CWS sb93 2008-10-01 09:14:16 +00:00
3b2b8f91ff CWS-TOOLING: integrate CWS sb93 2008-10-01 09:04:58 +00:00
c02c486b41 INTEGRATION: CWS changefileheader (1.3.132); FILE MERGED
2008/03/31 07:23:18 rt 1.3.132.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:27:27 +00:00
35113225b3 INTEGRATION: CWS changefileheader (1.4.96); FILE MERGED
2008/03/31 07:23:18 rt 1.4.96.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:27:09 +00:00
8625e1629d INTEGRATION: CWS changefileheader (1.4.74); FILE MERGED
2008/03/31 07:23:18 rt 1.4.74.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:52 +00:00
95e3cfdc0e INTEGRATION: CWS changefileheader (1.2.20); FILE MERGED
2008/03/31 07:23:18 rt 1.2.20.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:32 +00:00
ce582a0da6 INTEGRATION: CWS changefileheader (1.5.74); FILE MERGED
2008/03/31 07:23:18 rt 1.5.74.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:26:15 +00:00
f06c0f0202 INTEGRATION: CWS changefileheader (1.5.20); FILE MERGED
2008/03/31 07:23:18 rt 1.5.20.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:25:48 +00:00
8c89d65a5d INTEGRATION: CWS basmgr03 (1.1.2); FILE ADDED
2007/09/17 08:26:56 fs 1.1.2.1: #i80044# unit test for Reference class, currently containing tests for UNO_SET_THROW only
2007-10-09 14:19:47 +00:00