Commit 165b04cf authored by Simon Morlat's avatar Simon Morlat

fix compilation error when logging.h is included in C++ code not C++11.

parent d1f67e30
......@@ -278,7 +278,7 @@ class pumpstream : public std::ostringstream {
public:
pumpstream(const char *domain, BctbxLogLevel level) : mDomain(domain ? domain : ""), mLevel(level) {}
~pumpstream() {
const char *domain = mDomain.empty() ? nullptr : mDomain.c_str();
const char *domain = mDomain.empty() ? NULL : mDomain.c_str();
if (bctbx_log_level_enabled(domain, mLevel))
bctbx_log(domain, mLevel, "%s", str().c_str());
}
......
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