Michael Meeks
affb63e6e3
sot: minor unit test logic cleanup
2012-05-14 15:30:24 +01:00
Michael Meeks
ac90be0edd
sot: add OLE2 unit test reading streams forward and backwards
2012-05-14 15:17:39 +01:00
Michael Meeks
1d32c56f36
sot: re-work OLE2 offset-to-page computation
...
The gotcha here is that if we get ahead of ourselves, and read to
the end of the stream, we detect bad chains too early, so instead
incrementally build the page chain cache, which is also quicker
and behaves more similarly to the previous code.
2012-05-14 09:41:02 +01:00
Michael Meeks
7ed1e9aa17
sot: simplify the storage stream FAT item cache
...
Change-Id: Icb6fe9341244dfd53300f58ac85560604f53558a
2012-05-11 19:50:04 +01:00
Caolán McNamara
75e7643e22
Related: fdo#47644 get out of bounds conditions right
...
Change-Id: Icac9a8337296f92af5007a051f00388a64955178
2012-05-10 21:46:53 +01:00
Caolán McNamara
cede5686f6
should have been SAL_WARN
...
Change-Id: I3f5fd059ecd5b6c4278ffe0f3a2d69b6526d2d01
2012-05-03 16:59:43 +01:00
Caolán McNamara
4afd260197
std::is_sorted is C++11 or C++0X sgi extension
...
Change-Id: I3039bb172beb21ebafc60a431692b58793cb1538
2012-05-03 16:59:01 +01:00
Caolán McNamara
cdcf2fcefc
Related: fdo#47644 for huge files build a page chain cache for seeks
...
For huge ole2 structured storage files build a page chain cache on
demand to speed up long distance seeks
i.e. reduces .doc parse time for fdo#47644 from 1 minute 7 seconds to 18
seconds for me
Change-Id: I I40eefb8cabd05db8345a38ea3407686732eb35c9
2012-05-03 16:27:38 +01:00
Caolán McNamara
6577e56a9c
const up methods that don't change any state
...
Change-Id: I844cefad718e5b37dac5657674294a0873b8a8e5
2012-05-03 13:25:16 +01:00
Caolán McNamara
b36612d4a3
Fix sot stream bustage
...
We want the Tell position of the wrapper stream, not that of the underlying
wrapped stream.
Change-Id: I5d30192dbc3746104ca2127d9a747ef70b85a136
2012-05-03 12:22:29 +01:00
Caolán McNamara
d726281e90
Related: fdo#47644 compound storage backend is poor at knowing stream size
...
Change-Id: Ie4aa6939f9f37e04fda5425a6e28c5d846a9cb62
2012-05-03 00:06:33 +01:00
Bjoern Michaelsen
b1c3e8ae28
make gbuild the default assumption of build.pl
...
this removes dmake completely out of the build for migrated modules
build.pl now assumes modules to be gbuild, unless there is a
prj/dmake file
Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-29 03:50:46 +02:00
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