Bug 958596 - Add gfx logging support for 'char'. r=Bas

--HG--
extra : rebase_source : 2938fc27a6541fd5dd5ac1cf94f3e69ed3997ecc
This commit is contained in:
Botond Ballo 2014-01-21 20:26:00 -05:00
parent 5742b5c647
commit b3607d2320

View File

@ -86,6 +86,7 @@ public:
Log() {}
~Log() { mMessage << '\n'; WriteLog(mMessage.str()); }
Log &operator <<(char aChar) { mMessage << aChar; return *this; }
Log &operator <<(const std::string &aLogText) { mMessage << aLogText; return *this; }
Log &operator <<(const char aStr[]) { mMessage << static_cast<const char*>(aStr); return *this; }
Log &operator <<(bool aBool) { mMessage << (aBool ? "true" : "false"); return *this; }