Formated code with clang-format

This commit is contained in:
Benoit Blanchon
2014-10-23 19:54:00 +02:00
parent 888fdc1d54
commit 9175046f35
52 changed files with 2002 additions and 2638 deletions

View File

@@ -7,25 +7,21 @@
#include "../Arduino/Print.hpp"
namespace ArduinoJson
{
namespace Internals
{
class StringBuilder : public Print
{
public:
StringBuilder(char* buf, int size)
: buffer(buf), capacity(size - 1), length(0)
{
buffer[0] = 0;
}
namespace ArduinoJson {
namespace Internals {
class StringBuilder : public Print {
public:
StringBuilder(char *buf, int size)
: buffer(buf), capacity(size - 1), length(0) {
buffer[0] = 0;
}
virtual size_t write(uint8_t c);
virtual size_t write(uint8_t c);
private:
char* buffer;
int capacity;
int length;
};
}
private:
char *buffer;
int capacity;
int length;
};
}
}