loplugin:oncevar
Change-Id: I070f06ed3195925e525066c6ba25a0bb01b824d0
This commit is contained in:
parent
83634c9d11
commit
c724093edb
@ -755,11 +755,11 @@ RequestHandler::Status RequestHandler::Enable(bool ipc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum class Kind { Pipe, Dbus };
|
enum class Kind { Pipe, Dbus };
|
||||||
Kind kind = Kind::Pipe;
|
Kind kind;
|
||||||
#if ENABLE_DBUS
|
#if ENABLE_DBUS
|
||||||
if (std::getenv("LIBO_FLATPAK") != nullptr) {
|
kind = std::getenv("LIBO_FLATPAK") != nullptr ? Kind::Dbus : Kind::Pipe;
|
||||||
kind = Kind::Dbus;
|
#else
|
||||||
}
|
kind = Kind::Pipe;
|
||||||
#endif
|
#endif
|
||||||
rtl::Reference<IpcThread> thread;
|
rtl::Reference<IpcThread> thread;
|
||||||
Status stat = Status(); // silence bogus potentially-uninitialized warnings
|
Status stat = Status(); // silence bogus potentially-uninitialized warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user