Jan Holesovsky
62dc73d569
Fraction: Revert "make sure the denominator is not 0"
...
This reverts commit a3dc4db870
.
2014-10-23 18:34:35 +02:00
Jan Holesovsky
858c2a2977
Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"
...
This reverts commit 582ef22d3e
.
Conflicts:
svx/source/svdraw/svdedtv1.cxx
svx/source/svdraw/svdibrow.cxx
sw/source/filter/ww1/w1filter.cxx
Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-23 18:34:34 +02:00
Jan Holesovsky
ff502f409f
Fraction: Revert "coverity#1247617 there is nothing to do if width is 0"
...
This reverts commit 6016287fd0
.
2014-10-23 18:34:33 +02:00
Jan Holesovsky
d4867ddae6
Fraction: Revert "conversion to double should not be necessary"
...
This reverts commit 166eaf213b
.
2014-10-23 18:34:33 +02:00
Muthu Subramanian
0bab8aee77
fdo#85247: copy and paste of a slide results in a blue slide in presentation mode.
...
Seems like "Default" is handled specially or probably
the copy-buffer is broken
This now checks for slide 'type' as well, before cosidering it a duplicate
Change-Id: If8c472bcefb54cee72e7411f92a76b4e2db2b6ce
2014-10-23 20:30:26 +05:30
Marcos Paulo de Souza
2e52086aa0
fdo#60689: replace SUPD variable
...
Change-Id: Iad63330f8762b595ba5ee94fc20bc2c64ac92f6b
Reviewed-on: https://gerrit.libreoffice.org/11937
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-23 14:38:27 +00:00
Caolán McNamara
e87a0ca94b
Related: fdo#83003 Jay wants equal space above and below this button
...
Change-Id: I9babf256eabfd8a168097e28d0a9ffae0e281403
2014-10-23 14:54:53 +01:00
Caolán McNamara
2076a520b2
remove --without-ppds option now
...
This was intended for the time we had a huge bunch of third
party ppds, those are now long gone.
SGENT42.PS is now the same as SGENPRT.PS since
commit 871d8e0f27
Date: Mon Nov 25 14:13:40 2013 +0000
Resolves: rhbz#188467 default to Type42
so get rid of that one, leaving just the single SGENPRT.PS
fallback ppd
Change-Id: I851f25b2789b8aa101acd18193cd01e8cded4d09
2014-10-23 14:54:52 +01:00
Caolán McNamara
cf33ce9667
coverity#736876 Negative array index read
...
Change-Id: I5e0f2e4633286b320abfb6735232b57aedd3a5b3
2014-10-23 14:54:52 +01:00
Caolán McNamara
5be04f59c9
coverity#440777 Resource leak in object
...
rework to avoid the warning
Change-Id: Id104c01b04e07ffaaf503a842c978acbc8a22a19
2014-10-23 14:54:51 +01:00
Caolán McNamara
15037b018f
coverity#705781 Resource leak
...
Change-Id: Ia802df9c36b59a0130931436be7f5dbea07c0c8c
2014-10-23 14:54:51 +01:00
Caolán McNamara
2bb0bd5a4a
coverity#736214 Out-of-bounds access
...
Change-Id: I8d525813eb26f2fafbfc7386d394be4e749b8d70
2014-10-23 14:54:51 +01:00
Michael Stahl
a1fad26e04
fdo#84935: basic: DocBasicItem is a UNO service, lock SolarMutex in dtor
...
Change-Id: Ia31d735ba54d18f406653debce04a07c077d09eb
2014-10-23 15:38:20 +02:00
Stephan Bergmann
644678e2ac
Avoid left shift of negative values (ubsan)
...
Change-Id: If465c155c70ec068b6bd7adc05f188bbecc2824e
2014-10-23 15:34:41 +02:00
Stephan Bergmann
413210a503
Avoid left shift of negative values (ubsan)
...
Change-Id: Ie4f6a4e3e54770c00741cc268ed9e27ecafac500
2014-10-23 15:27:37 +02:00
Stephan Bergmann
1e5d17f821
ATTR_VALUE_FORMAT is an SfxUInt32Item
...
Change-Id: I38f7cece6157cd0a48e3c6a09b25eccc47f8525e
2014-10-23 14:34:00 +02:00
Matúš Kukan
0e63397d7f
Remove pointless functions now that saveChild() is ZipPackageStream's member
...
Change-Id: Id43ec2e7ddb1035d3306170523764bb9a74c03b8
2014-10-23 14:30:31 +02:00
Matúš Kukan
4b609883f9
Move ZipPackageStream::saveChild to proper source file
...
Change-Id: Icd108215874e830e5c9587f7dbb38a7f11ee27c8
2014-10-23 14:30:30 +02:00
Matúš Kukan
1b3122a189
package: Add pure virtual ZipPackageEntry::saveChild()
...
..and adapt what needs to be changed.
So that, we can kill at least some usages of horrible ContentInfo struct.
Change-Id: I32d41f3b8ce2dfb65f0d1df18a540a3f67dcab6d
2014-10-23 14:30:30 +02:00
Matúš Kukan
152c4afef4
package: ZipPackageStream: prefix members
...
Change-Id: I02a1c3189c6b52f4f539b0eaa8878985cae8b321
2014-10-23 14:30:30 +02:00
Matúš Kukan
3a8bddc18e
package: Add ZipOutputEntry to isolate deflating of streams.
...
Preparation commit for deflating streams in parallel.
We still use the same single XOutputStream (ByteChucker :-) for
sequential writing but this can now be changed more easily.
Change-Id: Idf26cc2187461660e31ac2e12c4708e761596fb2
2014-10-23 14:30:30 +02:00
Matúš Kukan
0c24faee6b
FastSerializer: Also use cache for writing to ForMerge if we are inside mark()
...
To ensure the correct order of calling ForMerge methods,
call flush always before touching maMarkStack.
This was the missing piece in optimizing write() methods,
because of writeBytes() checking each time what to call.
E.g. for Calc documents we don't use maMarkStack at all.
So, just transfer the output to proper "ForMerge" when inside mark()
and allow optimizations.
This commit makes write() methods almost 1/3 as fast.
Change-Id: I96c13888206c81f87e29b998839f78ea9d5570af
2014-10-23 14:30:29 +02:00
Matúš Kukan
143bbb20a3
inline TokenMap::getUtf8TokenName
...
Change-Id: Icd9c6ebc9feb3e7aba28b01729b582a8f49c832a
2014-10-23 14:30:29 +02:00
Matúš Kukan
d958e6d049
FastSerializer: Simplify OUString write a bit more
...
Change-Id: Ifa0746d635ec43cdc37867cf94bcc128bb8e2aca
2014-10-23 14:30:29 +02:00
Matúš Kukan
f89cace61a
FastSerializer: Avoid some cycles when dealing with doubles
...
Would be easier to use OStringBuffer, but we can't get its pData member.
Also its append(double) is suboptimal (or anything that uses
rtl_str_valueOfDouble) - should be doing something like this commit.
Change-Id: I8f3140081a574a84f0e60dc85cce1bd2de23cd34
2014-10-23 14:30:28 +02:00
Matúš Kukan
03040ac23b
FastSerializer: Use fixed sized Sequence directly as cache
...
Well, at least the allocated space is fixed size.
When passing that to XOutputStream, change the size in a hacky way.
Change-Id: I24fa134286e3086beda25c9a6915549e7c69119a
2014-10-23 14:30:28 +02:00
Matúš Kukan
25eba216d8
FastSerializer: Use -1 for unknown string length
...
Change-Id: I3920caf9d95f20992b7961873f1668468d797e8e
2014-10-23 13:24:28 +02:00
Matúš Kukan
f39d69f6b5
Remove few pointless OUString::number() and one method
...
Change-Id: I3e9a302a7513eebfeff07402f71fc3dde22e4cc2
2014-10-23 13:24:28 +02:00
Matúš Kukan
c0c45cad41
maTokenNames.size() is constant: use it and be a bit faster
...
Change-Id: I39a6e2badf0c159e87763e2782bc89f0ee6068ec
2014-10-23 13:24:27 +02:00
Matúš Kukan
5f46a7ad02
FastSerializer: Faster write(OUString): add ascii check
...
Saves about 80m pcycles for 180k calls.
Change-Id: I9c9b3bf5a076df56d1b5b87f0a85ac3404abe8a4
2014-10-23 13:24:27 +02:00
Matúš Kukan
eb8e7a7632
FastSerializer: Simplify a bit
...
Change-Id: I7dee908f5441ad34128d688e1008fd6ffad2ab3f
2014-10-23 13:24:26 +02:00
Matúš Kukan
865fc150ea
Unused includes / using-declarations
...
Change-Id: I8b43635ab1f77b61469f060c9a092f1494388955
2014-10-23 13:24:26 +02:00
Matúš Kukan
5ed4c11534
Use sc::CompileFormulaContext for faster export
...
It's a cache for maTabNames (sheet names mangled for the current grammar
for output) which ScCompiler needs and is expensive to get.
Change-Id: I7e2954104427a3c220f0f097be6cd45a66485b56
2014-10-23 13:24:26 +02:00
Matúš Kukan
d8af144254
FastSerializer: Use faster TokenValue struct when possible
...
Saves another ~100m pcycles for 650k calls in startElementInternal()
Change-Id: I190326edc7feffb900e91fa7e5c3530b5b267f59
2014-10-23 13:24:25 +02:00
Matúš Kukan
eb195bbe34
Use OUStringBuffers for performance reasons.
...
Saves 120m pcycles in just 250k calls to ScAddress::Format.
Change-Id: Ibf20cf0843a47cf0fa37a38c4fecf1ae1560412c
2014-10-23 13:24:25 +02:00
Matúš Kukan
dbbbea6662
FastSerializer: Simplify cache to be fixed sized buffer
...
This makes writeBytes(), which is called a lot, simpler and thus faster.
E.g. for ~15m calls, this saves ~110m pcycles.
Change-Id: I29d01a1a8651f668aff574e0f015cd2f018eb1cd
2014-10-23 13:24:25 +02:00
Matúš Kukan
659064475d
This was OString already; use it that way
...
Change-Id: Ia2268ce8a1e2111adb609c515e5bfa824afa66ce
2014-10-23 13:24:24 +02:00
Noel Grandin
035fe8a6aa
fdo#84938: replace MENUITEM constants with enum
...
Change-Id: I7b0085af3b13bd6e1a50bf1e0e986d1524b52d7b
2014-10-23 12:55:35 +02:00
Tor Lillqvist
bb0039fdca
WaE: unused parameters
...
Change-Id: I689754378773fc6926e4cebe3ec14b5056fb8986
2014-10-23 13:48:19 +03:00
Noel Grandin
feba02c3a4
loplugin: cstylecast
...
Change-Id: I71cdd9154a8a5955e2915858cec33ec4e9ef4987
2014-10-23 12:36:16 +02:00
Noel Grandin
6a097a7d96
loplugin: cstylecast
...
Change-Id: I8c7cd4c2cdc134556c2c664a22e2048b51a3b98e
2014-10-23 12:36:16 +02:00
Noel Grandin
229eed079c
loplugin: cstylecast
...
Change-Id: If991c0efe1ded6ef6d32b3a722ee87bbe36bf0bf
2014-10-23 12:36:16 +02:00
Noel Grandin
5f6f57c26e
loplugin: cstylecast
...
Change-Id: Id4c581724e7e5466ffe46f11f0a8da2527c23dc6
2014-10-23 12:36:15 +02:00
Noel Grandin
e2548315bf
loplugin: cstylecast
...
Change-Id: Iad39bce8e7562821bc8fbf8156ea56aedc19c7d6
2014-10-23 12:36:15 +02:00
Noel Grandin
d4ca0cc293
loplugin: cstylecast
...
Change-Id: I0eaeebad6be75a1c0cccdf90955fde1a2909bdba
2014-10-23 12:36:14 +02:00
Noel Grandin
50a8c89f36
loplugin: cstylecast
...
Change-Id: I9134aff4f2e6bff43ebb78c605e0ff521eac6ffc
2014-10-23 12:36:14 +02:00
Noel Grandin
cb414252b8
loplugin: cstylecast
...
Change-Id: I4aafc170895d8bab47206c7b07b4f1f6105d42d3
2014-10-23 12:36:14 +02:00
Tor Lillqvist
c7cacf639d
Rename --enable-sal-info to --enable-sal-log
...
Change-Id: I896c9ac1c941b85d052fbefb902c4341664881d4
2014-10-23 13:16:32 +03:00
Caolán McNamara
8133dc3d9a
RES_FLTR_NUMRULE_NUM, RES_FLTR_SDR_ANCHOR, etc unused
...
Change-Id: I69b550d38dcafba3bacf438711cb6c3d20483065
2014-10-23 11:13:25 +01:00
Caolán McNamara
3f89f88651
callcatcher: lots more unused post ww1 filter removal
...
Change-Id: I7bf6dc1d366093e797a19a8e555103c15b311ac8
2014-10-23 11:13:25 +01:00