mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-25 16:04:48 +00:00
Fix build failure in the MOBILEAPP case
We never exit an app process intentionally, so Log::isShutdownCalled() can always return false. Change-Id: I6b3cce85ccac5e3ffbb7b29ca552cb9e4441df2a Reviewed-on: https://gerrit.libreoffice.org/78979 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
@ -225,12 +225,12 @@ namespace Log
|
||||
std::flush(std::cerr);
|
||||
fflush(stderr);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool isShutdownCalled()
|
||||
{
|
||||
return IsShutdown;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -61,6 +61,8 @@ namespace Log
|
||||
void shutdown();
|
||||
/// Was static shutdown() called? If so, producing more logs should be avoided.
|
||||
bool isShutdownCalled();
|
||||
#else
|
||||
constexpr bool isShutdownCalled() { return false; }
|
||||
#endif
|
||||
|
||||
char* prefix(char* buffer, std::size_t len, const char* level);
|
||||
|
Reference in New Issue
Block a user