mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 23:02:31 +01:00
use perfect forwarding properly
This commit is contained in:
parent
55fef20267
commit
8a1729370b
@ -57,7 +57,7 @@ static RwFrame* GetFrameFromName( RwFrame* topFrame, const char* name )
|
||||
foundFrame = frame;
|
||||
return nullptr;
|
||||
}
|
||||
RwFrameForAllChildren( frame, std::ref(*this) );
|
||||
RwFrameForAllChildren( frame, *this );
|
||||
return foundFrame != nullptr ? nullptr : frame;
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ static RwFrame* GetFrameFromName( RwFrame* topFrame, const char* name )
|
||||
};
|
||||
|
||||
GetFramePredicate p( name );
|
||||
RwFrameForAllChildren( topFrame, std::ref(p) );
|
||||
RwFrameForAllChildren( topFrame, p );
|
||||
return p.foundFrame;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user