Switched to Google coding style to match cpplint expectations

This commit is contained in:
Benoit Blanchon
2014-10-23 23:13:13 +02:00
parent 5c8283b3e4
commit b43da1e421
47 changed files with 262 additions and 308 deletions

View File

@@ -13,7 +13,7 @@ namespace Internals {
// This class is used by JsonPrintable::prettyPrintTo() but can also be used
// for your own purpose, like logging.
class IndentedPrint : public Print {
public:
public:
IndentedPrint(Print &p) : sink(&p) {
level = 0;
tabSize = 2;
@@ -31,7 +31,7 @@ public:
// Set the number of space printed for each level of indentation
void setTabSize(uint8_t n);
private:
private:
Print *sink;
uint8_t level : 4;
uint8_t tabSize : 3;
@@ -39,8 +39,8 @@ private:
size_t writeTabs();
static const int MAX_LEVEL = 15; // because it's only 4 bits
static const int MAX_TAB_SIZE = 7; // because it's only 3 bits
static const int MAX_LEVEL = 15; // because it's only 4 bits
static const int MAX_TAB_SIZE = 7; // because it's only 3 bits
};
}
}