Commit Graph

225 Commits

Author SHA1 Message Date
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
45dfbdca6a Fix build with boost-1.56.0.
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-29 10:10:15 +01:00
7af733d9ef tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
2014-06-27 08:55:56 +01:00
365fea447d loplugin:staticcall
Change-Id: I0d254902727f6d9c874aaeed7c22096f282422d0
2014-06-13 17:54:30 +02:00
89d982ab83 ...and avoid SolarMutex deadlock when joining FactoryLoader threads
Change-Id: I6ae206d18dc03f99739ea20c72853db9662924d2
2014-06-04 23:43:47 +02:00
faf40b99aa Missing launch of FactoryLoader threads
...regression introduced with 06a09dd0ad1e8afcf69e877501036e068d477438 "Join
FactoryLoader threads."  (Also, hopefully, the original use of
osl::Thread::setPriority was just cargo cult, as salhelper::Thread does not make
that feature available to clients, so it had been dropped in
06a09dd0ad1e8afcf69e877501036e068d477438.)

Change-Id: I055c8fb20f3bbf13ba823436be24167d3446ed05
2014-06-04 23:34:33 +02:00
10ec4a7cb2 Left over "SAL_CALL"
Change-Id: I02cf4b4a145e29dc1bc529f0c0fbfbc4a6cdc47e
2014-06-04 14:16:59 +02:00
06a09dd0ad Join FactoryLoader threads
Change-Id: I22b313a895057edebc8bee715813de908826763a
2014-06-04 11:25:27 +02:00
9b791f9c31 remove unnecessary use of OUString constructor when throwing
Change-Id: I4a3f3f911dcfbf88696053215a2fb7a94678244c
2014-05-27 08:20:11 +02:00
ac76cc7e60 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23 22:11:52 +02:00
c288b17cc5 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14 23:18:57 +02:00
4185015225 fix-includes.pl: reportdesign
Change-Id: I01ad1f4c3a8e0ee8173ceb147ce20945b7d5433d
2014-05-14 22:35:50 +02:00
036a660a86 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
2014-05-13 23:20:26 +02:00
7347a8ed38 Fix previous commit (reportdesign part)
Change-Id: I490326abccac237bd70209d2a3dd623ebd5c59a2
2014-05-11 11:42:01 +02:00
bd59628620 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-11 10:16:42 +02:00
2d54aa1d22 reportdesign: sal_Bool->bool
Change-Id: Ib3e7a51a8b01165d4706857f7b347d622c2e624a
2014-05-08 11:48:12 +02:00
e23c98d713 reportdesign: sal_Bool->bool
Change-Id: I7a269dbf163f4c839b6c553c7b096185fe2f8a01
2014-05-02 08:49:23 +02:00
a640be7e2d Clean up function declarations and some unused functions
Change-Id: I367acc372d6b5996430a2c560e776a469b7e0007
2014-04-14 14:21:50 +02:00
5babf1b903 remove unnecessary scope qualifier from sal_Bool uses
i.e. convert "::sal_Bool" to "sal_Bool"

Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
67e2de7d6c coverity#707967 Uninitialized scalar field
Change-Id: I65aa00d79efe15f63c272fbcd5d3e0dea2c28dfc
2014-04-02 15:51:44 +01:00
362d4f0cd4 Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."

Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
567ef6d578 Second batch of adding SAL_OVERRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
96b0b3cb9c reportdesign: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I0ca0171f25a1df12c25f835595a086c670639bfd
2014-03-10 17:39:57 +01:00
4d6560f506 fdo#54938: Convert some places to use cppu::supportsService
The last cases are non obvious, so it's pratically done

Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547
Reviewed-on: https://gerrit.libreoffice.org/8445
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2014-03-04 07:30:02 -06:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
2196955b00 Remove visual noise from reportdesign
Change-Id: I2fea3ecefa24cfc0f3cc2a2f4de7c934eba5d6f7
Reviewed-on: https://gerrit.libreoffice.org/8295
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 08:57:59 -06:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
05f742d28b comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
2014-02-17 17:55:19 +01:00
08c40a2474 sal_Bool->bool
Change-Id: I31fb9d5b49260fd1a8fc1312b01fd5632c97ab2e
2014-02-11 12:50:43 +02:00
6ad41af76f fdo#54938 Convert dtrans, remoteb., reportd., ucbhelper to cppu::supportsSer..
Change-Id: I42cf7dc139b79b715f3c330f9bca7d333de8bafc
Reviewed-on: https://gerrit.libreoffice.org/7762
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-02-04 10:16:33 +00:00
f68d5d5c8c coverity#738780-79 : Uninitialized scalar field
Change-Id: Ie8a986bb633a7d81f95b81eac5bf2879ccba2cb9
2014-01-31 21:49:06 -06:00
373de64a36 bool improvements
Change-Id: Ida0db3963ad472952f63b5e24901f16f6b0d5184
2014-01-28 20:26:24 +01:00
5398419116 bool improvements
Change-Id: I21f806d7a9ebe5b4de4cbedfc9879019cdbba22b
2014-01-22 08:22:36 +01:00
d341000406 REPORTDESIGN : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.

Change-Id: I9cb8af9dad93a7ee7114489b13e3994515357a10
Reviewed-on: https://gerrit.libreoffice.org/7533
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21 16:24:38 +00:00
a62c2a5fa5 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-12 08:26:40 +01:00
123e2c3e93 Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...

Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11 15:38:30 +01:00
90f91088d2 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11 15:16:51 +01:00
fc87d57f04 replace OUString::reverseCompareTo("xxx") with operator==
operator== with OUString and literal internally does a reverse-compare
(via OUString::equalsAsciiL) anyway, so no need to keep explicit calls
to OUString::reverseCompareTo with literal argument

Change-Id: I799d9bcd0d5c308a9547ce7cacb2db6042fdb643
2013-11-22 11:23:05 +02:00
73342dbb82 remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.

Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
2013-11-22 08:07:19 +02:00
24cad6a649 Move MediaDescriptor from comphelper to unotools
...so it will be able to use SvtSecurityOptions internally.

Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14 11:13:24 +01:00
62f27a5e7b remove unnecessary use of OUString constructor in REPORTDESIGN module
Change-Id: I5790d7e0c15ac837865597da6ab8a165a5291813
2013-11-11 08:36:07 +02:00
1812d606b7 rptui::OShape make getSupportedServiceNames and supportsService
at the cost of inconsistency between getSupportedServiceNames and getSupportedServiceNames_Static

Change-Id: I940b23c35a6c4080eb6575adff1de0b08cdb3698
2013-11-09 06:35:19 +01:00
e7fad6da68 fdo#71130 pretend to support service m_sServiceName
Which was the case before, and was probably erroneously changed in
commit 196f980012739d94654e6863b85b2e49f7e1a1e5
    fdo#54938: Replace existsValue for cppu::supportsService

Change-Id: I20323bba1105d1844c79a5a0ad3c9e133a9d0d05
2013-11-08 03:09:53 +01:00
e2451bd729 Convert indexOf->startsWith and lastIndexOf->endsWith
This is both an optimisation and a cleanup.

This converts code like
   aStr.indexOf("XX") == 0
to
  aStr.startsWith("XX")
and converts code like
  aStr.lastIndexOf("XXX") == aStr.getLength() - 3
to
  aStr.endsWith("XXX")

Note that in general
  aStr.lastIndexOf("X") == aStr.getLength() - 1
converts to
  aStr.isEmpty() || aStr.endsWith("X")
so I used the surrounding context to determine if aStr could be empty
when modifying the code.

Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-31 08:34:21 +02:00
196f980012 fdo#54938: Replace existsValue for cppu::supportsService
As now ::comphelper::existsValue is not used anymore, we're removing this too.

Change-Id: I9bd2544a9c378f5a18746255133f5684867e0114
Reviewed-on: https://gerrit.libreoffice.org/6378
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-23 14:58:17 +00:00
45e366eadb drop unnecessary tools/string includes
Change-Id: I4278999b9b7d184c26036bbe9e3b98420f461e8c
2013-10-20 19:00:36 +01:00
218775e19c convert String to OUString in reportdesign module
Change-Id: I6c154dff7c613c8975136f2934df3b0f385dade4
2013-10-18 09:59:31 +02:00
f58ee783ee Improve ErrorCodeIOException messages
...and clean up some includes.

Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
2013-10-09 21:02:11 +02:00
98de5b40c8 Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-25 19:24:23 +02:00