@ -60,7 +60,7 @@ void File::clear()
m_data.clear();
}
File& File::append(std::string data)
File& File::append(const std::string& data)
{
m_data.append(data);
@ -19,7 +19,7 @@ public:
static File create(const std::string& path);
void clear();
File& append(std::string data);
File& append(const std::string& data);
File& replace(size_t index, size_t length, const std::string& data);
File& flush();