Browse Source

Util: Make file append const reference

master
Riyyi 3 years ago
parent
commit
54dc515def
  1. 2
      src/util/file.cpp
  2. 2
      src/util/file.h

2
src/util/file.cpp

@ -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);

2
src/util/file.h

@ -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();

Loading…
Cancel
Save