mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 19:10:24 +01:00
Fixes warnings
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user