Просмотр исходного кода

core: disable copying FileMonitor

Daniele Bartolini 3 лет назад
Родитель
Сommit
53e37bbfd4
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/core/filesystem/file_monitor.h

+ 6 - 0
src/core/filesystem/file_monitor.h

@@ -43,6 +43,12 @@ struct FileMonitor
 	///
 	///
 	~FileMonitor();
 	~FileMonitor();
 
 
+	///
+	FileMonitor(const FileMonitor &) = delete;
+
+	///
+	FileMonitor &operator=(const FileMonitor &) = delete;
+
 	/// Starts monitoring the @a paths.
 	/// Starts monitoring the @a paths.
 	void start(u32 num, const char **paths, bool recursive, FileMonitorFunction fmf, void *user_data);
 	void start(u32 num, const char **paths, bool recursive, FileMonitorFunction fmf, void *user_data);