Kaydet (Commit) c724093e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:oncevar

Change-Id: I070f06ed3195925e525066c6ba25a0bb01b824d0
üst 83634c9d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment