Bug 1331495 - Move operator<< overloads for mozilla::Logger inside namespace mozilla. r=froydnj

MozReview-Commit-ID: LqAx0zXVkgc

--HG--
extra : rebase_source : df18a96013158d238d505c5791ce176948987e83
This commit is contained in:
Botond Ballo 2017-01-20 18:21:38 -05:00
parent c57de18781
commit cc3459a0d4
2 changed files with 4 additions and 3 deletions

View File

@ -61,7 +61,6 @@ Logger::printf(const char* fmt, ...)
}
LazyLogModule Logger::gChromiumPRLog("chromium");
} // namespace mozilla
mozilla::Logger&
operator<<(mozilla::Logger& log, const char* s)
@ -97,3 +96,5 @@ operator<<(mozilla::Logger& log, void* p)
log.printf("%p", p);
return log;
}
} // namespace mozilla

View File

@ -76,8 +76,6 @@ struct EmptyLog
{
};
} // namespace mozilla
mozilla::Logger& operator<<(mozilla::Logger& log, const char* s);
mozilla::Logger& operator<<(mozilla::Logger& log, const std::string& s);
mozilla::Logger& operator<<(mozilla::Logger& log, int i);
@ -90,6 +88,8 @@ const mozilla::EmptyLog& operator <<(const mozilla::EmptyLog& log, const T&)
return log;
}
} // namespace mozilla
#ifdef NO_CHROMIUM_LOGGING
#define CHROMIUM_LOG(info) std::stringstream()
#define LOG_IF(info, condition) if (!(condition)) std::stringstream()