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

Unified Diff: device/core/device_monitor_win.cc

Issue 1064153002: Mark operator() as const for VS 2015 compat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/core/device_monitor_win.cc
diff --git a/device/core/device_monitor_win.cc b/device/core/device_monitor_win.cc
index cf2d1f72e0b87ba23ad5635c99183836aac6c1ee..3449c82350e658b5b93379141946f63a8ce993cc 100644
--- a/device/core/device_monitor_win.cc
+++ b/device/core/device_monitor_win.cc
@@ -26,7 +26,7 @@ DeviceMonitorMessageWindow* g_message_window;
// Provides basic comparability for GUIDs so that they can be used as keys to an
// STL map.
struct CompareGUID {
- bool operator()(const GUID& a, const GUID& b) {
+ bool operator()(const GUID& a, const GUID& b) const {
return memcmp(&a, &b, sizeof a) < 0;
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698