mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Alright, this _TEMP_CONVERT_ stuff was a stupid idea
This commit is contained in:
@ -109,7 +109,7 @@ bool NameMatches(const char* obName, const char* pKName, bool subString)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_TEMP_CONVERT_FROM_LITERAL(p).Find(o, plString::kCaseInsensitive) >= 0)
|
||||
if (plString(p).Find(o, plString::kCaseInsensitive) >= 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -264,12 +264,12 @@ void plKeyFinder::IGetNames(std::vector<plString>& names, const plString& search
|
||||
|
||||
void plKeyFinder::GetResponderNames(std::vector<plString>& names)
|
||||
{
|
||||
IGetNames(names, _TEMP_CONVERT_FROM_LITERAL(""), CLASS_INDEX_SCOPED(plResponderModifier));
|
||||
IGetNames(names, plString(), CLASS_INDEX_SCOPED(plResponderModifier));
|
||||
}
|
||||
|
||||
void plKeyFinder::GetActivatorNames(std::vector<plString>& names)
|
||||
{
|
||||
IGetNames(names, _TEMP_CONVERT_FROM_LITERAL(""), CLASS_INDEX_SCOPED(plLogicModifier));
|
||||
IGetNames(names, plString(), CLASS_INDEX_SCOPED(plLogicModifier));
|
||||
}
|
||||
|
||||
class plKeyFinderIterator : public plRegistryKeyIterator, public plRegistryPageIterator
|
||||
|
@ -536,9 +536,9 @@ inline plKeyImp* IFindKeyLocalized(const plUoid& uoid, plRegistryPageNode* page)
|
||||
if ((!objectName.IsNull()) && plLocalization::IsLocalized())
|
||||
{
|
||||
char localName[256];
|
||||
if (plLocalization::GetLocalized(_TEMP_CONVERT_TO_CONST_CHAR(objectName), localName))
|
||||
if (plLocalization::GetLocalized(objectName.c_str(), localName))
|
||||
{
|
||||
plKeyImp* localKey = page->FindKey(uoid.GetClassType(), _TEMP_CONVERT_FROM_LITERAL(localName));
|
||||
plKeyImp* localKey = page->FindKey(uoid.GetClassType(), localName);
|
||||
if (localKey != nil)
|
||||
return localKey;
|
||||
}
|
||||
@ -921,7 +921,7 @@ plKey plResManager::ICloneKey(const plUoid& objUoid, uint32_t playerID, uint32_t
|
||||
fCurCloneID = cloneID;
|
||||
fCurClonePlayerID = playerID;
|
||||
|
||||
plKey cloneKey = ReRegister(_TEMP_CONVERT_FROM_LITERAL(""), objUoid);
|
||||
plKey cloneKey = ReRegister(plString(), objUoid);
|
||||
|
||||
fCurClonePlayerID = 0;
|
||||
fCurCloneID = 0;
|
||||
@ -1272,7 +1272,7 @@ public:
|
||||
{
|
||||
if (stricmp(page->GetPageInfo().GetAge(), fAgeName) == 0)
|
||||
{
|
||||
plUoid uoid(page->GetPageInfo().GetLocation(), 0, _TEMP_CONVERT_FROM_LITERAL(""));
|
||||
plUoid uoid(page->GetPageInfo().GetLocation(), 0, plString());
|
||||
fLocations.push_back(uoid.GetLocation());
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user