mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-06 10:45:45 +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);
|
std::flush(std::cerr);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
bool isShutdownCalled()
|
bool isShutdownCalled()
|
||||||
{
|
{
|
||||||
return IsShutdown;
|
return IsShutdown;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@ -61,6 +61,8 @@ namespace Log
|
|||||||
void shutdown();
|
void shutdown();
|
||||||
/// Was static shutdown() called? If so, producing more logs should be avoided.
|
/// Was static shutdown() called? If so, producing more logs should be avoided.
|
||||||
bool isShutdownCalled();
|
bool isShutdownCalled();
|
||||||
|
#else
|
||||||
|
constexpr bool isShutdownCalled() { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* prefix(char* buffer, std::size_t len, const char* level);
|
char* prefix(char* buffer, std::size_t len, const char* level);
|
||||||
|
Reference in New Issue
Block a user