Convert base::size to std::size from C++17 (see issue #3362)

This commit is contained in:
Marshall Greenblatt
2022-09-05 16:31:47 -04:00
parent 12fc72147c
commit 5ea0c141b5
8 changed files with 8 additions and 75 deletions

View File

@@ -11,7 +11,6 @@
#include <string>
#include "include/base/cef_callback.h"
#include "include/base/cef_cxx17_backports.h"
#include "include/cef_browser.h"
#include "include/cef_command_ids.h"
#include "include/cef_frame.h"
@@ -1469,7 +1468,7 @@ bool ClientHandler::IsAllowedCommandId(int command_id) {
IDC_CONTENT_CONTEXT_UNDO,
IDC_CONTENT_CONTEXT_REDO,
};
for (size_t i = 0; i < base::size(kAllowedCommandIds); ++i) {
for (size_t i = 0; i < std::size(kAllowedCommandIds); ++i) {
if (command_id == kAllowedCommandIds[i])
return true;
}