File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
examples/tv-casting-app/tv-casting-common Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ class BaseCluster
34
34
{
35
35
private:
36
36
protected:
37
- memory::Weak<Endpoint> endpoint ;
37
+ memory::Weak<Endpoint> mEndpoint ;
38
38
39
39
public:
40
- BaseCluster (memory::Weak<Endpoint> endpoint) { this ->endpoint = endpoint; }
40
+ BaseCluster (memory::Weak<Endpoint> endpoint) { this ->mEndpoint = endpoint; }
41
41
42
42
virtual ~BaseCluster () {}
43
43
@@ -46,7 +46,7 @@ class BaseCluster
46
46
void operator =(const BaseCluster &) = delete ;
47
47
48
48
protected:
49
- memory::Weak<Endpoint> GetEndpoint () const { return endpoint .lock (); }
49
+ memory::Weak<Endpoint> GetEndpoint () const { return mEndpoint .lock (); }
50
50
};
51
51
52
52
}; // namespace core
Original file line number Diff line number Diff line change 29
29
#include < map>
30
30
#include < memory>
31
31
#include < type_traits>
32
+ #include < vector>
32
33
33
34
namespace matter {
34
35
namespace casting {
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ void EndpointListLoader::Complete()
119
119
for (unsigned long i = 0 ; i < mNewEndpointsToLoad ; i++)
120
120
{
121
121
EndpointAttributes endpointAttributes = mEndpointAttributesList [i];
122
- std::shared_ptr<Endpoint> endpoint (new Endpoint (CastingPlayer::GetTargetCastingPlayer (), endpointAttributes));
122
+ std::shared_ptr<Endpoint> endpoint =
123
+ std::make_shared<Endpoint>(CastingPlayer::GetTargetCastingPlayer (), endpointAttributes);
123
124
for (chip::ClusterId clusterId : mEndpointServerLists [i])
124
125
{
125
126
switch (clusterId)
You can’t perform that action at this time.
0 commit comments