Commit Graph

279 Commits

Author SHA1 Message Date
74ce05b940 convert Link<> to typed
Change-Id: I280473a7a9069a86388f608bddc8e48879771bc9
Reviewed-on: https://gerrit.libreoffice.org/18815
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-24 16:20:51 +00:00
55dda8e8d0 convert Link<> to typed
Change-Id: I92df586295c11bc9e9276770656901c2e4e714b9
2015-09-22 20:21:55 +02:00
3a00aaef2a boost->std
Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0
Reviewed-on: https://gerrit.libreoffice.org/18670
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-18 07:59:14 +00:00
9ea0390f17 convert Link<> to typed
Change-Id: Iaca21344f6a38f508f79e6d5983e515162a6dca3
2015-09-10 08:30:11 +02:00
37e94841db percheck: produce similar stats than off-tree callgrind
Change-Id: I7035ea6f2d9ffe92282533064d69b75e2c1989e1
2015-09-02 14:31:21 -05:00
013efe75eb test: hack to avoid VCLXToolkit calling CreateMainLoopThread
... for the PythonTest, similar to what vclbootstrapprotector does for
CppunitTest; actually no idea if this is a good idea or a bad idea.

Change-Id: Ia4e2e50fdc9c8deb9faf580a2f3f3308533265eb
Reviewed-on: https://gerrit.libreoffice.org/17540
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-08-19 19:35:46 +00:00
ef46917ff3 Put Polygon from tools under tools:: namespace
Polygon is one of these names that Clash with some system objects
A similar work has been done earlier with PolyPolygon.

Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5
Reviewed-on: https://gerrit.libreoffice.org/17789
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-17 02:07:43 +00:00
7a044db51d loplugin:simplifybool
Change-Id: Idb065bab0285a5db209e75e29a9f6f4d72091e8c
2015-07-16 14:00:22 +02:00
0980095619 Replace boost::scoped_array<T> with std::unique_ptr<T[]>
This may reduce some degree of dependency on boost.
Done by running a script like:

git grep -l '#include  *.boost/scoped_array.hpp.' \
 | xargs sed -i -e 's@#include  *.boost/scoped_array.hpp.@#include <memory>@'
git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \
 | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/'

... and then killing duplicate or unnecessary includes,
while changing manually
m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx,
extensions/source/ole/unoconversionutilities.hxx, and
extensions/source/ole/oleobjw.cxx.

Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd
Reviewed-on: https://gerrit.libreoffice.org/16289
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-06-17 15:50:45 +00:00
dd466513a9 window ftbfs: MetaActionType::TRANSPARENT->MetaActionType::Transparent
ideally camel case the rest of these for consistency

Change-Id: I7f66b8051ea58963ea28d128f73900aefe5d2846
2015-05-15 10:01:38 +01:00
ad0c5e6c66 convert META_*_ACTION constants to scoped enum
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
2015-05-15 10:05:03 +02:00
4f00dce2b3 Use IMPL_[STATIC_]LINK_NOARG where applicable
Change-Id: I1e24b032bdeea017b0e77c5446e55310899ce752
2015-05-10 11:25:48 +02:00
9bb254fc85 NOINSTANCE is implied now in IMPL_STATIC_LINK...
Change-Id: Ifb032457d6c1b279c4183282ef2b271c706dd71a
2015-05-10 11:25:47 +02:00
f9290d3011 Clean up checks of sal_Bool values
Change-Id: Ia05565077823d6efaeaeb35d3d80b51dd9a10d4c
2015-05-08 09:49:03 +02:00
f62af191bf typo: strech -> stretch
Change-Id: I0de1cfaa0df460c7bc8e49752b31056f95c30053
Reviewed-on: https://gerrit.libreoffice.org/15628
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2015-05-05 07:25:21 +00:00
e6c08b6b30 Remove unnecessary STATIC_LINK macro
Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90
2015-04-29 18:29:59 +02:00
c8509a027f More loplugin:simplifybool
Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2
2015-04-27 15:31:02 +02:00
a40d0bdf72 Use OFFICEOTRON/ODFVALIDATOR determined by configure
Change-Id: I456669f15a659e144fc6ecad053cd0b929859424
2015-04-20 16:48:32 +02:00
2093c7a27b Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I50d13cdd5fb94a68c2eb7c165c75ab2413a0d254
2015-04-01 08:41:47 +02:00
5584d73f2d Typos
Change-Id: I434be0034b26ac4719590238817538ecd90b8923
2015-03-25 20:42:37 +01:00
5dad2733b8 loplugin:constantfunction: test
Change-Id: I86eb9e46bec561bf0ede60180754ae35cefadfd5
2015-03-24 09:45:51 +02:00
32f95a3551 V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-04 13:07:40 +00:00
e935f05c80 Some more loplugin:cstylecast: test
Change-Id: I48397ba0cc3c0737f6c47808d353245f81050a2b
2015-01-20 09:06:52 +01:00
7f8f277b94 fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
93bb210119 Let MetafileXmlDump::dumpAndParse() take a const GDIMetaFile
So the const_cast<> in CppunitTest_sw_uiwriter can go away.

Change-Id: Id7d4234154cd6bed43cb5270b50208061038dcf7
2014-12-19 09:05:09 +01:00
11f2099904 test: Use appropriate OUString functions on string constants
Change-Id: Idbdc5c9aab8fa65df39d66da2461337db6350e52
2014-12-18 17:57:46 +01:00
e6bf3f2dcc test: Use appropriate OUString functions on string constants
Change-Id: Id4327a479fd61b3793a2b8b250203edcfe3e6754
2014-12-18 14:12:35 +01:00
84a7fa47a5 XmlTestTools: fix conversion from UTF-8 xmlChar strings to OUString
...which resolves the mystery of 0ba6360363fb73b5b200bbc486ed8eeac5f3d337
"Garbage in, garbage out?"

Change-Id: I51f102699d0474872c80392b27f71030b5e3fb59
2014-12-18 12:34:40 +01:00
e3ce885504 CppunitTest --headless is not the same as soffice --headless
...they just "happen" to have the same name

Change-Id: Ia602f9a62e07c3af6fba2ffb84a858e1fb4b09ce
2014-12-10 16:17:15 +01:00
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
e65790ddcf perfcheck instrument existing test : replaceAll
Change-Id: I7766aa6d69810124b27763912c3e7a8399637280
Reviewed-on: https://gerrit.libreoffice.org/12243
Reviewed-by: Matúš Kukan <matus.kukan@collabora.com>
Tested-by: Matúš Kukan <matus.kukan@collabora.com>
2014-11-12 08:59:03 +00:00
fc0d57b7af Revert "use the new OUString::fromUtf8 method"
This reverts commit 05050cdb23de586870bf479a9df5ced06828d498,
not all places that use e.g. OStringToOUString to convert potential UTF-8
are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and
some places like e.g. in codemaker are happy with the best-effort effect
of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
2014-11-06 17:24:13 +01:00
05050cdb23 use the new OUString::fromUtf8 method
Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
2014-11-06 13:51:10 +02:00
e4e7f9d88e Improve framework for callgrind performance unit tests
Do not abort in tests which take longer then before.
Since 4f5f6d2444a24138c3d3d378771f87cb06427195 we have nice tool to
collect callgrind results, store them..

Also, make it not necessary to duplicate anything. Any test can be turned
into a performance test by using callgrindStart/callgrindDump. You only
need to duplicate the makefile name in gb_Module_add_perfcheck_targets.

So, if the test is run as part of 'perfcheck', it runs under callgrind,
otherwise it behaves like a regular unit test.

Change-Id: I7acbb855b1823c9a32ba126abb57dccc767ca239
2014-10-29 17:41:54 +01:00
ed45c87896 sc: fix temp file leak in ScTableSheetsObj
Change-Id: Iff838c97c1cf633f99e75a169eeb8bb324d4a32a
2014-10-21 15:06:41 +02:00
af5ebbf783 create a macro library for implementing bit-flags types
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>,
changed from a macro- to a template-based solution.  (Unfortunately MSVC 2012
does not support explicit conversion operators.  Worked around that with
explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and
SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a
baseline that requires unconditional support for them.)

Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-13 17:45:57 +02:00
7d754a8492 sc: ensure global variables in tests are cleared before shutdown
If the destructors run from exit handlers, they could access already
deleted globals from VCL etc. and crash.

Change-Id: I265046e95998a4384e1ce0f1f205d03c078a40a9
2014-09-30 17:34:26 +02:00
548b360c0e Factor out duplicated code to XmlTestTools::assertXPathNoAttribute()
Change-Id: I1eb3778e6bcdd8c44ffb9a7548add109331fc83b
2014-09-30 12:07:32 +02:00
1da676eb86 Include name of document in CPPUNIT_ASSERT msgs
Change-Id: Ia0d06d1e0951bcc3930d5e059658209a2916405f
2014-09-23 11:19:23 +02:00
60e78fbb80 fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.

Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
9432b8d400 coverity#1233488 Unchecked dynamic_cast
Change-Id: I9599fb4473a43a4624d64c48e8768761fcbd266f
2014-09-02 12:14:44 +01:00
2fa3aed1cb parseXml should return xmlDocPtr instead of htmlDocPtr
Change-Id: Ia9fb79ea40ca840d7328a078e747ad64a63d18f1
2014-08-28 13:50:47 +02:00
a69f8ea61c vcl: convert push flags to type-safe enum-like class
Change-Id: Ib49a0dd5ecee0225f51bea2ff1c0ab5326595a47
2014-08-21 09:17:32 +02:00
613cc91bb5 Fix another: reference to 'Primitive2DSequence' is ambiguous
Change-Id: I8b78126cab64f023ffcb35c080576148b1eb15f5
2014-08-17 00:54:21 +02:00
ed8c687265 Fix: reference to 'Primitive2DSequence' is ambiguous
Change-Id: Ic6cf4bc6dab4b9e2610aebdc42e3df7b56eda59d
2014-08-17 00:32:03 +02:00
fb1f710d3f loplugin:passstuffbyref (Primitive2DSequence)
Change-Id: I3d9c6daa09d71ca872021fe13405b08050e191d9
2014-08-17 00:32:03 +02:00
4bc6484c59 initial implementation of XML dump for Primitive2DSequence
Change-Id: I6618b18164a26553f81a1c737e009b7187b028c3
2014-08-16 20:49:20 +02:00
d3a59629f7 XmlWriter: simplify and take SvStream* as input
Change-Id: I56b2fa6887f7971604a2dcf34497ecda9cea8937
2014-08-16 20:49:20 +02:00
8a3a2e888b mtfxmldump: move XML writing into its own function
Change-Id: I82954177fe9d4934e69b33c1c985304add09e089
2014-08-16 20:49:19 +02:00
20d8a3474b No need to write '
Change-Id: I0562defc6fc60ee83bc73b901caf46b1283a9df9
2014-08-16 20:49:19 +02:00