diff options
Diffstat (limited to 'libs/hwui/utils/StringUtils.h')
-rw-r--r-- | libs/hwui/utils/StringUtils.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/hwui/utils/StringUtils.h b/libs/hwui/utils/StringUtils.h index af5d10f8522b..a10610a3d0da 100644 --- a/libs/hwui/utils/StringUtils.h +++ b/libs/hwui/utils/StringUtils.h @@ -30,9 +30,7 @@ namespace uirenderer { class unordered_string_set : public std::unordered_set<std::string> { public: - bool has(const char* str) { - return find(std::string(str)) != end(); - } + bool has(const char* str) { return find(std::string(str)) != end(); } }; class StringUtils { @@ -55,8 +53,8 @@ struct SizePrinter { } }; -class LogcatStream: public std::ostream { - class LogcatStreamBuf: public std::stringbuf { +class LogcatStream : public std::ostream { + class LogcatStreamBuf : public std::stringbuf { virtual int sync() { ALOGD("%s", str().c_str()); str(""); @@ -65,10 +63,9 @@ class LogcatStream: public std::ostream { }; LogcatStreamBuf buffer; + public: - LogcatStream() - :std::ostream(&buffer) { - } + LogcatStream() : std::ostream(&buffer) {} }; } /* namespace uirenderer */ |