summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-30 11:06:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-30 11:06:58 +0200
commitc724093edb92c53db8cbb8ab5b910610a9fb53d0 (patch)
tree0deefd515b4545e1ab4a0b114679f5827907a4b6 /desktop
parent83634c9d11ea730f6525c66ba26a87e9d1ef3936 (diff)
loplugin:oncevar
Change-Id: I070f06ed3195925e525066c6ba25a0bb01b824d0
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/officeipcthread.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 57546f8ea66d..e32c32d82498 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -755,11 +755,11 @@ RequestHandler::Status RequestHandler::Enable(bool ipc)
}
enum class Kind { Pipe, Dbus };
- Kind kind = Kind::Pipe;
+ Kind kind;
#if ENABLE_DBUS
- if (std::getenv("LIBO_FLATPAK") != nullptr) {
- kind = Kind::Dbus;
- }
+ kind = std::getenv("LIBO_FLATPAK") != nullptr ? Kind::Dbus : Kind::Pipe;
+#else
+ kind = Kind::Pipe;
#endif
rtl::Reference<IpcThread> thread;
Status stat = Status(); // silence bogus potentially-uninitialized warnings