Commit Graph

341 Commits

Author SHA1 Message Date
dc6175ff1f Remove LockHelper::getGlobalMutex().
Do what the TODO suggests - change it to SolarMutex in most cases.

In some cases it is only there to guard a local static, introduce a local
mutex for those.

Change-Id: Idc3155818f737b958b36ee9125e2e9e8cb1b91a1
2014-04-15 13:10:56 +02:00
a6287e21f1 framework: sal_Bool->bool
Change-Id: Ia6e87e2b382bd4005637e14088bde9e809996a25
2014-04-07 13:53:49 +02:00
d9701f0ebc Typo: s/ouer/our
Change-Id: I0179678c6c5dd6a05b1d7d5038a901e7bf2af3de
2014-04-06 20:27:21 +03:00
ee3945bd98 Kill superfluous spacing before semicolons
Change-Id: I53689e78221f3fe074e47d6b47f1a2c3fef96222
2014-04-06 19:37:48 +03:00
951ed199f1 Kill superfluous vertical whitespace
Change-Id: Ia1bb2b40c74efb17e655dd6f00d7ba48c16c65ae
2014-04-06 19:37:48 +03: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
c8239a1dd4 Remove newly unused framework::LockHelper class
...and make LockHelper::getGlobalLock() FWI_DLLPUBLIC again (so there's a single
such lock, not one per library).

Change-Id: I0aed77333dc93cdf1c7dd7b96620fb7a8eb3dd64
2014-03-20 17:30:03 +01:00
250a4e8875 Remove newly unused framework::Guard
Change-Id: I49650bfd036c5df22f81c3e8cf30bc0795154a30
2014-03-20 17:30:02 +01:00
4ddb43bcf1 Turn odd framework::LockHelper::getGlobalLock() into an osl::Mutex
...and extract it to framework::GlobalLock::get().

The old lock was actually effectively two different locks,
LockHelper::getGloblaLock() and
LockHelper::getGlobalLock().getShareableOslMutex(), and both were used in
different places.  These places all use the same single osl::Mutex instance now,
but hopefully that does not lead to problems (which it shouldn't, given the
documentation of LockHelper::getShareableOslMutex: "Sometimes we need a osl-
mutex for sharing with our uno helper ... What can we do? We must use a
different mutex member :-( I HOPE IT WORKS!").

Of course, the "TODO: This presumable should return the SolarMutex" still
applies.

Change-Id: I7caea3241d1b70a00272fe1f2214c071ef22cf2c
2014-03-20 17:30:02 +01:00
dd7b477e9d Access safe members directly
Change-Id: Ib1195f4704de845448e280fabbe40580de46a97d
2014-03-20 15:04:13 +01:00
4f843f2bc8 Use an osl::Mutex directly
Change-Id: Icb655df89fcb3c9dac0f25d0fdb5383d24914877
2014-03-20 15:04:13 +01:00
ed15977626 Access safe members directly
Change-Id: I184f6450dc436b37fefe6c6ca35f61296ec10dd6
2014-03-20 15:04:13 +01:00
10dbb3b44f Use SolarMutexGuard directly
Change-Id: Ia963e00be69d7a7b5b1d45f9827b05b69cd24a48
2014-03-18 15:27:08 +01:00
f7d4bcfd45 Use SolarMutexGuard directly
Change-Id: Iffc5e75c45502c770e9a3eee2a327df1e6843c9f
2014-03-18 15:27:08 +01:00
e6e3403f1f Use SolarMutexGuard directly
Change-Id: I01c937881031c85a99aacbfbb3463203eb3d0b3e
2014-03-18 15:27:08 +01:00
7cc2bb414c Use SolarMutexGuard directly
Change-Id: I58d52cfec21f2f93a6a17469bf31fc70d93c26a9
2014-03-18 15:27:08 +01:00
309eba8c5d Use SolarMutexGuard directly
Change-Id: I4b902ac0f23d1b7e697dfec0ba31e6f396059a49
2014-03-18 15:27:07 +01:00
90cee97bc9 Use SolarMutexGuard directly
Change-Id: Id9828f95673d1eaf87e6a1c22bf8f07e6861f2f4
2014-03-18 15:27:07 +01:00
503d893847 Use SolarMutexGuard directly
Change-Id: Id5ea9c7c7c3cb56d080daeb1e2e2c72483a37a4e
2014-03-18 15:27:07 +01:00
8030fe2572 Use SolarMutexGuard directly
Change-Id: Ie13cf612b2f9b15698a84d35d420b0b7c0009e1b
2014-03-18 15:27:07 +01:00
4eb2c58093 Use SolarMutexGuard directly
Change-Id: Ib63b12595f4f9a43c4742d8cf8cfea4713ebdf14
2014-03-18 15:27:07 +01:00
82f79abae5 Use SolarMutexGuard directly
...and access safe members directly

Change-Id: I46fa7683922b0604118f6da219f44204767f4618
2014-03-18 15:27:06 +01:00
07b32bc2bf Consolidate framework::{Resetable,}Guard
Change-Id: I97290c2504992f4a92e6aeb71e02a2542dd35faa
2014-03-17 18:00:10 +01:00
ab3acb7ef7 Consolidate framework::{Read,Write}Guard
...now that it is obvious that they both do the same

Change-Id: I6878acca4750ef4204fe32a695b6d9e1c5140115
2014-03-17 16:52:34 +01:00
88c4f15deb Remove unused framework::FairRWLock
Change-Id: I91adf908aaa399186ff69d3a07eb945aed0c90f5
2014-03-17 16:52:32 +01:00
e895da0420 Don't do anything in status indicators on non-desktop for now
Probably it should depend on whether doing tiled rendering or
not. Unclear whether that then can be a compile-time constant, or a
run-time global state, or need to be even more fine-grained.

Change-Id: I8b2f8889e82ecc647ddce915e35eceec121613bd
2014-03-11 11:48:58 +02:00
fcbefea017 Remove visual noise from framework
Conflicts:
	framework/inc/dispatch/oxt_handler.hxx
	framework/inc/services/layoutmanager.hxx
	framework/inc/tabwin/tabwindow.hxx
	framework/source/dispatch/menudispatcher.cxx
	framework/source/helper/dockingareadefaultacceptor.cxx
	framework/source/helper/ocomponentaccess.cxx
	framework/source/helper/ocomponentenumeration.cxx
	framework/source/helper/oframes.cxx
	framework/source/layoutmanager/toolbarlayoutmanager.hxx
	framework/source/recording/dispatchrecorder.cxx
	framework/source/services/desktop.cxx
	framework/source/services/frame.cxx
	framework/source/services/urltransformer.cxx

Change-Id: Ibb04e3f6f0796e7f2be16dcce38542f8b90708d4
Reviewed-on: https://gerrit.libreoffice.org/8265
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 14:41:41 -06:00
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01: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
2462159d7b bool improvements
Change-Id: I754b47013d8f1aa3ecf6204fbe926a438887639d
2014-01-28 20:26:27 +01:00
c2c530da69 Introduce static inline cppu::acquire(), and make use of that.
This is much better approach compared to the callback function, as it allows
passing arguments to the c++ constructor directly, while still allowing some
additional initialization after having acquired the instance.

Change-Id: I5a0f981915dd58f1522ee6054e53a3550b29d624
2014-01-22 15:09:28 +01:00
f278397787 Change _get_implementation()'s not to do initialization directly.
Many of the initalizations (in eg. framework) have to be done on an
acquire()'d object, so instead of doing the initialization directly, return
the initialization member function back to the createInstance() /
createInstanceWithContext() / ... and perform the initialization there.

As a sideeffect, I belive the calling initialize() from servicemanager is not
that much a hack any more - whoever converts the implementation to be
constructor-base has the choice to provide the callback, or still initialize
through XInitialization, where the callback is preferred by servicemanager
when it exists.

Change-Id: I8a87b75c54c1441ca0f184967d31ff4902fc4081
2014-01-21 21:25:22 +01:00
1115adbb5d bool improvements
Change-Id: I1588e6dcbc095d8c5fcde3601eea9111fbae15fb
2014-01-21 18:24:07 +01:00
10074976b7 fwk: Use constructor feature for StatusIndicatorFactory.
Change-Id: I0595ec98df7bf4114dfb4c21aedd2d2744fda11e
2014-01-17 12:24:51 +01:00
9874547118 bool improvements
Change-Id: Ice9f38b615b325bce6c15fefe9fbb3f528d36b1e
2014-01-14 21:28:09 +01:00
ea65158833 The #ifndef MACOSX can surround even more code
Change-Id: Ia771d36711364bcf53789b3f7a623582451d175d
2013-12-26 18:28:08 +02:00
4274e6a9af WaE: unused variables
Change-Id: I42549eaa7048a6bcb248d3bd1bb28ca2c7c38763
2013-12-26 18:19:45 +02:00
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01: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
c4a593b6b1 remove unnecessary use of OUString constructor in FRAMEWORK module
Change-Id: Icbed4f318043a166ed78fe0c49a53f87ebf7201d
2013-11-11 08:36:07 +02:00
b1f5986c57 StatusIndicatorFactory::impl_reschedule(): lock SolarMutex
... before calling Reschedule().

Change-Id: I244fdd1a4642ea0e1ad266f6d9c4c56527018952
2013-11-03 15:20:51 +01:00
7f436c1fd3 typo fixes in comments
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-09-26 11:47:45 +02:00
e8ecf30ea6 convert FRAMEWORK module from String to OUString
Change-Id: Iafa6b5f213d37093e7e46065c9264c7bb7fae377
2013-09-17 09:05:49 +02:00
7323bc3405 WaE: warning C4100: 'aEvent' : unreferenced formal parameter
I thought SAL_WARN_IF etc worked in such a way that any variables used
in the condition would be "used" from the compiler's point of view,
even in an optimising build case where SAL_DETAIL_ENABLE_LOG_WARN is
false and SAL_WARN_IF should optimise away?

Change-Id: I728e1eeb8559e1299abf403afceb0e2748d08857
2013-09-09 22:25:50 +03:00
2b3e225853 Bin some uses of the stupid DECLARE_ASCII macro
Change-Id: I076eef8069e848ec3cf9c69f1b489ad44586324e
2013-09-09 00:58:15 +03:00
895885652e Fix non-debug build
Change-Id: I5446c7fec62c1a934b1ffb21fefa1279b932ca09
2013-09-09 00:13:01 +03:00
9a8e2d09bc Use SAL_WARN_IF instead of framework's home-grown LOG_ASSERT(2)
Also remove declarations for debug function that don't exist (have been
removed (misguidedly?) as unused perhaps).

Change-Id: I0bc3320c52b3d50dc851a07fdc30b593cc4856b1
2013-09-08 23:51:41 +03:00
d798d26bc4 Remove some occurrences of RTL_CONSTASCII_STRINGPARAM and equalsAsciiL
Change-Id: I7acc31f819be6552344073fa032085d01622fca3
2013-07-29 01:35:35 +02:00
e8be58a10b fdo#46037: 1 less occurrence comphelper/configurationhelper in fmwk/helper
Change-Id: I504789fb6b1e5332b0c131313ea9b9c538227d46
2013-07-26 20:50:55 +02:00
02931dc8c7 ouch
Change-Id: I927a688c28121d084bf3fd9a57dd1a9c2501a407
2013-07-26 12:51:27 +02:00