Skip to content

Commit 7860d4c

Browse files
committed
Cleanup.
1 parent b889530 commit 7860d4c

7 files changed

Lines changed: 16 additions & 19 deletions

File tree

‎include/react/api.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ class Event;
8282
template <typename E = Token>
8383
class EventSource;
8484

85-
template <typename E>
85+
template <typename E = Token>
8686
class EventSlot;
8787

8888
template <typename E = Token>
8989
using EventValueList = std::vector<E>;
9090

91-
template <typename E>
91+
template <typename E = Token>
9292
using EventValueSink = std::back_insert_iterator<std::vector<E>>;
9393

9494
// Observer
@@ -112,4 +112,4 @@ void MapInsert(T& map, V&& value)
112112

113113
/******************************************/ REACT_END /******************************************/
114114

115-
#endif // REACT_TYPETRAITS_H_INCLUDED
115+
#endif // REACT_API_H_INCLUDED

‎include/react/common/ptrcache.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ class WeakPtrCache
6969

7070
/******************************************/ REACT_END /******************************************/
7171

72-
#endif // REACT_COMMON_INDEXED_STORAGE_H_INCLUDED
72+
#endif // REACT_COMMON_PTR_CACHE_H_INCLUDED

‎include/react/common/slotmap.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7-
#ifndef REACT_COMMON_INDEXED_STORAGE_H_INCLUDED
8-
#define REACT_COMMON_INDEXED_STORAGE_H_INCLUDED
7+
#ifndef REACT_COMMON_SLOTMAP_H_INCLUDED
8+
#define REACT_COMMON_SLOTMAP_H_INCLUDED
99

1010
#pragma once
1111

@@ -189,4 +189,4 @@ class SlotMap
189189

190190
/******************************************/ REACT_END /******************************************/
191191

192-
#endif // REACT_COMMON_INDEXED_STORAGE_H_INCLUDED
192+
#endif // REACT_COMMON_SLOTMAP_H_INCLUDED

‎include/react/common/utility.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7-
#ifndef REACT_COMMON_UTIL_H_INCLUDED
8-
#define REACT_COMMON_UTIL_H_INCLUDED
7+
#ifndef REACT_COMMON_UTILITY_H_INCLUDED
8+
#define REACT_COMMON_UTILITY_H_INCLUDED
99

1010
#pragma once
1111

@@ -84,4 +84,4 @@ bool IsBitmaskSet(T flags, T mask)
8484
inline t& operator^=(t& lhs, t rhs) \
8585
{ lhs = static_cast<t>(static_cast<std::underlying_type<t>::type>(lhs) ^ static_cast<std::underlying_type<t>::type>(rhs)); return lhs; }
8686

87-
#endif // REACT_COMMON_UTIL_H_INCLUDED
87+
#endif // REACT_COMMON_UTILITY_H_INCLUDED

‎include/react/detail/graph_impl.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7-
#ifndef REACT_DETAIL_PROPAGATION_H_INCLUDED
8-
#define REACT_DETAIL_PROPAGATION_H_INCLUDED
7+
#ifndef REACT_DETAIL_GRAPH_IMPL_H_INCLUDED
8+
#define REACT_DETAIL_GRAPH_IMPL_H_INCLUDED
99

1010
#pragma once
1111

@@ -244,4 +244,4 @@ class GroupInternals
244244

245245
/****************************************/ REACT_IMPL_END /***************************************/
246246

247-
#endif // REACT_DETAIL_PROPAGATION_H_INCLUDED
247+
#endif // REACT_DETAIL_GRAPH_IMPL_H_INCLUDED

‎include/react/detail/state_nodes.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#pragma once
88

9-
#ifndef REACT_DETAIL_GRAPH_STATENODES_H_INCLUDED
10-
#define REACT_DETAIL_GRAPH_STATENODES_H_INCLUDED
9+
#ifndef REACT_DETAIL_GRAPH_STATE_NODES_H_INCLUDED
10+
#define REACT_DETAIL_GRAPH_STATE_NODES_H_INCLUDED
1111

1212
#include "react/detail/defs.h"
1313

@@ -416,4 +416,4 @@ static State<S> SameGroupOrLink(const Group& targetGroup, const State<S>& dep)
416416

417417
/****************************************/ REACT_IMPL_END /***************************************/
418418

419-
#endif // REACT_DETAIL_GRAPH_STATENODES_H_INCLUDED
419+
#endif // REACT_DETAIL_GRAPH_STATE_NODES_H_INCLUDED

‎include/react/event.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ class Event : protected REACT_IMPL::EventInternals<E>
5959
Event(Event&&) = default;
6060
Event& operator=(Event&&) = default;
6161

62-
auto Tokenize() const -> decltype(auto)
63-
{ return REACT::Tokenize(*this); }
64-
6562
auto GetGroup() const -> const Group&
6663
{ return GetNodePtr()->GetGroup(); }
6764

0 commit comments

Comments
 (0)