Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
#include <dirent.h>
#include <stdio.h>
+#include <memory>
+
#include "c_private.h"
#include "c_lib.h"
#include "c_string.h"
return {};
} while (qstrcmp(dirent->d_name, ".") == 0 || qstrcmp(dirent->d_name, "..") == 0);
- file_stat.reset(new csync_file_stat_t);
+ file_stat = std::make_unique<csync_file_stat_t>();
file_stat->path = c_utf8_from_locale(dirent->d_name);
QByteArray fullPath = QByteArray() % const_cast<const char *>(handle->path) % '/' % QByteArray() % const_cast<const char *>(dirent->d_name);
if (file_stat->path.isNull()) {
#include <fcntl.h>
#include <stdio.h>
+#include <memory>
+
#include "windows.h"
#include "c_private.h"
if (path == "." || path == "..")
return csync_vio_local_readdir(dhandle);
- file_stat.reset(new csync_file_stat_t);
+ file_stat = std::make_unique<csync_file_stat_t>();
file_stat->path = path;
if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {