mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -3,7 +3,9 @@
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "include/internal/cef_string_multimap.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
|
||||
typedef std::multimap<CefString, CefString> StringMultimap;
|
||||
@ -19,7 +21,7 @@ CEF_EXPORT size_t cef_string_multimap_size(cef_string_multimap_t map) {
|
||||
}
|
||||
|
||||
CEF_EXPORT size_t cef_string_multimap_find_count(cef_string_multimap_t map,
|
||||
const cef_string_t* key) {
|
||||
const cef_string_t* key) {
|
||||
DCHECK(map);
|
||||
DCHECK(key);
|
||||
StringMultimap* impl = reinterpret_cast<StringMultimap*>(map);
|
||||
@ -55,7 +57,8 @@ CEF_EXPORT int cef_string_multimap_enumerate(cef_string_multimap_t map,
|
||||
return cef_string_set(val.c_str(), val.length(), value, true);
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map, size_t index,
|
||||
CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map,
|
||||
size_t index,
|
||||
cef_string_t* key) {
|
||||
DCHECK(map);
|
||||
DCHECK(key);
|
||||
@ -72,7 +75,8 @@ CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map, size_t index,
|
||||
return 0;
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map, size_t index,
|
||||
CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map,
|
||||
size_t index,
|
||||
cef_string_t* value) {
|
||||
DCHECK(map);
|
||||
DCHECK(value);
|
||||
@ -85,7 +89,7 @@ CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map, size_t index
|
||||
for (size_t ct = 0; it != impl->end(); ++it, ct++) {
|
||||
if (ct == index) {
|
||||
return cef_string_set(it->second.c_str(), it->second.length(), value,
|
||||
true);
|
||||
true);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user