Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@@ -13,17 +13,15 @@
// Default traits for CefBrowserInfoMap. Override to provide different object
// destruction behavior.
template<typename ObjectType>
template <typename ObjectType>
struct DefaultCefBrowserInfoMapTraits {
static void Destruct(ObjectType info) {
delete info;
}
static void Destruct(ObjectType info) { delete info; }
};
// Maps an arbitrary IdType to an arbitrary ObjectType on a per-browser basis.
template <typename IdType,
typename ObjectType,
typename Traits = DefaultCefBrowserInfoMapTraits<ObjectType> >
typename Traits = DefaultCefBrowserInfoMapTraits<ObjectType>>
class CefBrowserInfoMap {
public:
// Implement this interface to visit and optionally delete objects in the map.
@@ -38,7 +36,7 @@ class CefBrowserInfoMap {
virtual bool OnNextInfo(int browser_id,
InfoIdType info_id,
InfoObjectType info,
bool* remove) =0;
bool* remove) = 0;
protected:
virtual ~Visitor() {}
@@ -46,9 +44,7 @@ class CefBrowserInfoMap {
CefBrowserInfoMap() {}
~CefBrowserInfoMap() {
clear();
}
~CefBrowserInfoMap() { clear(); }
// Add an object associated with the specified ID values.
void Add(int browser_id, IdType info_id, ObjectType info) {
@@ -261,5 +257,4 @@ class CefBrowserInfoMap {
DISALLOW_COPY_AND_ASSIGN(CefBrowserInfoMap);
};
#endif // CEF_LIBCEF_DLL_WRAPPER_CEF_BROWSER_INFO_MAP_H_