Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3025)

Unified Diff: device/serial/serial_io_handler_win.cc

Issue 2644543003: Rename device.serial.ParityBit.NO to avoid a clash with NO in objective C. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/serial/serial_io_handler_posix.cc ('k') | extensions/browser/api/serial/serial_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_win.cc
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc
index aaf8dac9b98f793909a4e3fc627dccc70f002871..f09e4a2ffc93a83a7097067e2a12a9223fa18bd8 100644
--- a/device/serial/serial_io_handler_win.cc
+++ b/device/serial/serial_io_handler_win.cc
@@ -63,7 +63,7 @@ int ParityBitEnumToConstant(serial::ParityBit parity_bit) {
return EVENPARITY;
case serial::ParityBit::ODD:
return ODDPARITY;
- case serial::ParityBit::NO:
+ case serial::ParityBit::NO_PARITY:
default:
return NOPARITY;
}
@@ -125,7 +125,7 @@ serial::ParityBit ParityBitConstantToEnum(int parity_bit) {
return serial::ParityBit::ODD;
case NOPARITY:
default:
- return serial::ParityBit::NO;
+ return serial::ParityBit::NO_PARITY;
}
}
« no previous file with comments | « device/serial/serial_io_handler_posix.cc ('k') | extensions/browser/api/serial/serial_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698