mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
use perfect forwarding properly
This commit is contained in:
parent
55fef20267
commit
8a1729370b
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ static RwFrame* GetFrameFromName( RwFrame* topFrame, const char* name )
|
||||||
foundFrame = frame;
|
foundFrame = frame;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
RwFrameForAllChildren( frame, std::ref(*this) );
|
RwFrameForAllChildren( frame, *this );
|
||||||
return foundFrame != nullptr ? nullptr : frame;
|
return foundFrame != nullptr ? nullptr : frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ static RwFrame* GetFrameFromName( RwFrame* topFrame, const char* name )
|
||||||
};
|
};
|
||||||
|
|
||||||
GetFramePredicate p( name );
|
GetFramePredicate p( name );
|
||||||
RwFrameForAllChildren( topFrame, std::ref(p) );
|
RwFrameForAllChildren( topFrame, p );
|
||||||
return p.foundFrame;
|
return p.foundFrame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue