Index: runtime/bin/file_system_watcher_win.cc |
diff --git a/runtime/bin/file_system_watcher_win.cc b/runtime/bin/file_system_watcher_win.cc |
index ebbb207808cccf252ac8ff5667464237db112e3e..dad55c60e7afb76ba118d181b682b5d3ab99fd18 100644 |
--- a/runtime/bin/file_system_watcher_win.cc |
+++ b/runtime/bin/file_system_watcher_win.cc |
@@ -24,17 +24,14 @@ bool FileSystemWatcher::IsSupported() { |
return true; |
} |
- |
intptr_t FileSystemWatcher::Init() { |
return 0; |
} |
- |
void FileSystemWatcher::Close(intptr_t id) { |
USE(id); |
} |
- |
intptr_t FileSystemWatcher::WatchPath(intptr_t id, |
const char* path, |
int events, |
@@ -67,7 +64,6 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id, |
return reinterpret_cast<intptr_t>(handle); |
} |
- |
void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { |
USE(id); |
DirectoryWatchHandle* handle = |
@@ -75,13 +71,11 @@ void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { |
handle->Stop(); |
} |
- |
intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) { |
USE(id); |
return path_id; |
} |
- |
Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
USE(id); |
const intptr_t kEventSize = sizeof(FILE_NOTIFY_INFORMATION); |
@@ -117,9 +111,10 @@ Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
Dart_ListSetAt(event, 0, Dart_NewInteger(mask)); |
// Move events come in pairs. Just 'enable' by default. |
Dart_ListSetAt(event, 1, Dart_NewInteger(1)); |
- Dart_ListSetAt(event, 2, Dart_NewStringFromUTF16( |
- reinterpret_cast<uint16_t*>(e->FileName), |
- e->FileNameLength / 2)); |
+ Dart_ListSetAt( |
+ event, 2, |
+ Dart_NewStringFromUTF16(reinterpret_cast<uint16_t*>(e->FileName), |
+ e->FileNameLength / 2)); |
Dart_ListSetAt(event, 3, Dart_NewBoolean(true)); |
Dart_ListSetAt(event, 4, Dart_NewInteger(path_id)); |
Dart_ListSetAt(events, i, event); |