Przeglądaj źródła

core: disable copying FileMonitor

Daniele Bartolini 3 lat temu
rodzic
commit
53e37bbfd4
1 zmienionych plików z 6 dodań i 0 usunięć
  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(const FileMonitor &) = delete;
+
+	///
+	FileMonitor &operator=(const FileMonitor &) = delete;
+
 	/// Starts monitoring the @a paths.
 	void start(u32 num, const char **paths, bool recursive, FileMonitorFunction fmf, void *user_data);