Commit graph

709 commits

Author SHA1 Message Date
Laureano G. Linde
c29d22ce5d Removed StgHeader::SetClassId(ClsId const &) 2012-04-16 21:50:30 +01:00
David Tardon
5fcacd8408 rename gb_CppunitTest_uses_ure 2012-04-08 15:17:45 +02:00
David Tardon
fbbb833dda compile- and run-time use of UNO must be split
There are unit tests that do not use URE, e.g., in cppuhelper.

This reverts commit 33e9f3d3d6.

Conflicts:

	sot/CppunitTest_sot_test_sot.mk
	svl/CppunitTest_svl_urihelper.mk
2012-04-08 15:12:18 +02:00
David Tardon
cd2c512f9f clean up 2012-04-08 14:53:10 +02:00
David Tardon
e5f16b8d3e always use --protector for UNO tests 2012-04-08 14:53:08 +02:00
David Tardon
33e9f3d3d6 drop uses_ure 2012-04-08 14:53:08 +02:00
David Tardon
fe209e78db let use_api handle the use of type rdbs at runtime
Or is there any use case where we would need to use UNO API headers, but
not require the appropriate type database at runtime?
2012-04-08 14:53:07 +02:00
Michael Stahl
4c50f23f87 LinkTarget.mk: remove gb_LinkTarget_add_package_headers 2012-04-08 01:05:53 +02:00
Michael Stahl
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
Szabolcs Dezsi
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
Szabolcs Dezsi
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
Luboš Luňák
802518c59a always pass --headless to cppunits
They should not need any actual UI anyway, and most of them already
pass the option manually.
http://lists.freedesktop.org/archives/libreoffice/2012-March/029109.html
2012-04-02 12:26:20 +02:00
Caolán McNamara
d3e4260676 ditch archaic ifdefs for gcc 2.8.1, 2.9.0 and 2.9.1 2012-03-23 14:58:01 +00:00
Caolán McNamara
c05373e331 valgrind: fix minor leak 2012-03-06 11:26:37 +00:00
Caolán McNamara
273960e01f callcatcher: update list 2012-03-05 13:42:58 +00:00
Caolán McNamara
96cf4e158f unused inline 2012-03-05 09:29:23 +00:00
Elton Chung
a1a1131c16 Remove unused code 2012-03-05 10:35:50 +02:00
Elton Chung
e8dbf6840c Remove unused code 2012-03-01 20:17:14 +02:00
Caolán McNamara
2eeef79b78 callcatcher: update list 2012-03-01 10:43:56 +00:00
Caolán McNamara
4444565b17 refactor upper chain test a tiny bit 2012-02-29 13:05:05 +00:00
Wei Ming Khoo
0a9ced485f fix storage chain loop 2012-02-29 13:05:04 +00:00
Thomas Arnhold
695dca6853 unusedcode.easy: OwnerLock includes this feature 2012-02-24 05:33:50 +01:00
Thomas Arnhold
323fd82da0 unusedcode.easy: Remove SotFactory::TestInvariant()
Also CALL_TEST_INVARIANT is never used again.
2012-02-24 05:33:40 +01:00
Stephan Bergmann
fe981519f5 gb_JunitTest_JunitTest takes only one argument 2012-02-20 16:39:59 +01:00
Stephan Bergmann
9ab0b38e95 Various string function clean up
Added:
* rtl::OString::matchL
* rtl::OString::endsWith
* rtl::OString::endsWithL
* rtl::OString::indexOfL
* rtl::OString::replaceFirst
* rtl::OString::replaceAll
* rtl::OString::getToken
* rtl::OUString::endsWith
* rtl::OUString::replaceFirst
* rtl::OUString::replaceFirstAsciiL
* rtl::OUString::replaceFirstAsciiLAsciiL
* rtl::OUString::replaceAll
* rtl::OUString::replaceAllAsciiL
* rtl::OUString::replaceAllAsciiLAsciiL
* rtl::OUString::getToken
plus underlying C functions where necessary

Deprecated:
* comphelper::string::remove
* comphelper::string::getToken

Removed:
* comphelper::string::searchAndReplaceAsciiL
* comphelper::string::searchAndReplaceAllAsciiWithAscii
* comphelper::string::searchAndReplaceAsciiI
* comphelper::string::replace
* comphelper::string::matchL
* comphelper::string::matchIgnoreAsciiCaseL
* comphelper::string::indexOfL

Also fixed some apparent misuses of RTL_CONSTASCII_USTRINGPARAM ->
RTL_CONSTASCII_STRINGPARAM.
2012-02-15 15:41:09 +01:00
Matúš Kukan
4b30ec9def fdo#39491 -I$(OUTDIR)/inc is set in SOLARINC 2012-02-10 21:41:45 +01:00
Josh Heidenreich
8b9615be88 Added (and improved) READMEs for modules which used to be in libs-gui 2012-02-08 07:46:57 +01:00
Greg Kroah-Hartman
8d31e2fe62 sot: Delete FileList::GetFormat as it is no longer used 2012-02-07 00:44:28 +01:00
Norbert Thiebaud
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06:00
Stephan Bergmann
3af05d9da6 SWAPLONG -> OSL_SWAPDWORD 2012-01-31 09:17:53 +01:00
Stephan Bergmann
23e8cfdb90 SWAPLONG -> OSL_SWAPDWORD 2012-01-31 08:45:46 +01:00
Caolán McNamara
fba010a777 make sot ByteString free 2012-01-23 11:37:04 +00:00
Caolán McNamara
cce3e85e0d ByteString->rtl::OString 2012-01-23 11:37:04 +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
Olivier Hallot
806dce17d6 Fix for fdo43460 Part XXXIV getLength() to isEmpty()
Part XXXIV
Modules
shell, slideshow, sot, starmath
2012-01-11 18:43:07 -02:00
Caolán McNamara
3c62fbcdd7 simplify LocalFileHelper::ConvertURLToPhysicalName 2012-01-10 10:09:28 +00:00
Caolán McNamara
45b19123a6 simplify CharClass
multiple variants of toUpper (etc)
some that take a non-const OUString or String and modify it
some that take a const OUString or String and return a new one
some that take part of a const OUString or String and return a new one
2012-01-09 13:28:37 +00:00
Marcel Metz
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00
Marcel Metz
5845c5b6ec Removed unnecessary tools/link.hxx includes. 2012-01-06 23:55:50 +01:00
Michael Stahl
473a1a4a48 gbuild: define NOMINMAX in windows.mk 2012-01-04 12:39:53 +01:00
Takeshi Abe
5451e9c702 catch exception by constant reference 2011-12-26 03:38:50 +09:00
Caolán McNamara
56c0d3b569 disable min as macro under msvc 2011-12-21 15:16:26 +00:00
Caolán McNamara
c1d49234e5 tweak for pre language-defect #77 2011-12-21 13:44:52 +00:00
Caolán McNamara
5c24789ca3 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 13:44:52 +00:00
Caolán McNamara
c4f0efc237 convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 13:44:52 +00:00
Caolán McNamara
6708977331 needs more work first
This reverts commit 92f396733e.
2011-12-21 10:30:10 +00:00
Caolán McNamara
fffae28952 bah, need to tweak for pre c++0x
This reverts commit d00fc0e293.
2011-12-21 10:29:33 +00:00
Caolán McNamara
d00fc0e293 disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.

The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all

The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
2011-12-21 10:10:58 +00:00
Caolán McNamara
92f396733e convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 10:10:58 +00:00
Julien Nabet
60beba6a73 Revert buggy 4046a1dfc2 2011-12-11 22:31:40 +01:00