connection manager: cleanup
Change-Id: I6a5d7b458f033f0d3dfebefb29bc7a097720e701
diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index 7ba5eb8..23aceff 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -153,7 +153,7 @@
loadFile(const std::filesystem::path& path)
{
std::vector<uint8_t> buffer;
- std::ifstream file = ifstream(path, std::ios::binary);
+ std::ifstream file(path, std::ios::binary);
if (!file)
throw std::runtime_error("Can't read file: " + path.string());
file.seekg(0, std::ios::end);
@@ -170,7 +170,7 @@
void
saveFile(const std::filesystem::path& path, const uint8_t* data, size_t data_size, mode_t mode)
{
- std::ofstream file = fileutils::ofstream(path, std::ios::trunc | std::ios::binary);
+ std::ofstream file(path, std::ios::trunc | std::ios::binary);
if (!file.is_open()) {
//JAMI_ERR("Could not write data to %s", path.c_str());
return;