diff options
author | Jaume Pujantell <jaume.pujantell@collabora.com> | 2023-11-29 17:08:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@gmail.com> | 2023-12-18 10:34:10 +0000 |
commit | 35d6e2925f3d6069bbf5a3c02ed1dc6aa5c30b0e (patch) | |
tree | c6af8673c5abc3c30de870ba904f087cf36636d4 /common/Unit.cpp | |
parent | add logic to sapwn threads intead of processes (diff) | |
download | online-35d6e2925f3d6069bbf5a3c02ed1dc6aa5c30b0e.tar.gz online-35d6e2925f3d6069bbf5a3c02ed1dc6aa5c30b0e.zip |
use isKitInProcess() instead of KIT_IN_PROCESS
Removed all uses of KIT_IN_PROCESS, used Utils::isKitInProcess()
when necessary. Also removed the now unused parameter 'limit' from
forkLibreOfficeKit.
Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I068d3f55ab49076590f111847c87b3188f4d25d0
Diffstat (limited to 'common/Unit.cpp')
-rw-r--r-- | common/Unit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/Unit.cpp b/common/Unit.cpp index c3a4306d6c..76364c9d16 100644 --- a/common/Unit.cpp +++ b/common/Unit.cpp @@ -685,6 +685,8 @@ UnitKit& UnitKit::get() if (!GlobalKit) GlobalKit = new UnitKit("UnitKit"); #endif + if (Util::isKitInProcess() && !GlobalKit) + GlobalKit = new UnitKit("UnitKit"); assert(GlobalKit); return *GlobalKit; |