Fixes warnings

This commit is contained in:
Milo Yip
2014-07-03 00:59:35 +08:00
parent 5852c42bb9
commit 5a186104f4
17 changed files with 178 additions and 33 deletions

View File

@@ -8,14 +8,21 @@ using namespace rapidjson;
class EncodedStreamTest : public ::testing::Test {
public:
EncodedStreamTest() : json_(), length_() {}
virtual void SetUp() {
json_ = ReadFile("utf8.json", true, &length_);
}
virtual void TearDown() {
free(json_);
json_ = 0;
}
private:
EncodedStreamTest(const EncodedStreamTest&);
EncodedStreamTest& operator=(const EncodedStreamTest&);
protected:
static FILE* Open(const char* filename) {
char buffer[1024];
@@ -131,7 +138,6 @@ protected:
remove(filename);
}
const char* filename_;
char *json_;
size_t length_;
};