Merge pull request #139 from AndyTaylorTweet/patch-1
Update YSFReflectors.cpp
This commit is contained in:
commit
9495bb203b
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ CYSFReflector* CYSFReflectors::findById(const std::string& id)
|
|||
CYSFReflector* CYSFReflectors::findByName(const std::string& name)
|
||||
{
|
||||
std::string fullName = name;
|
||||
if (m_makeUpper) {
|
||||
std::transform(fullName.begin(), fullName.end(), fullName.begin(), ::toupper);
|
||||
}
|
||||
fullName.resize(16U, ' ');
|
||||
|
||||
for (std::vector<CYSFReflector*>::const_iterator it = m_currReflectors.cbegin(); it != m_currReflectors.cend(); ++it) {
|
||||
|
|
Loading…
Add table
Reference in a new issue