mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 958596 - Add gfx logging support for 'char'. r=Bas
--HG-- extra : rebase_source : 2938fc27a6541fd5dd5ac1cf94f3e69ed3997ecc
This commit is contained in:
parent
5742b5c647
commit
b3607d2320
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user