Skip to content

Commit c023f18

Browse files
committed
use an alias for typeDisplayName
1 parent f27b7c9 commit c023f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Script.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4217,7 +4217,6 @@ MoaError TStdXtra_IMoaMmXScript::GetLoaded(PMoaLong loadedPointer, PIMoaDrCastMe
42174217

42184218
MoaError TStdXtra_IMoaMmXScript::GetTypeDisplayName(MoaMmSymbol typeSymbol, std::string* typeDisplayNamePointer) {
42194219
PMoaVoid typeDisplayNameStringPointer = NULL;
4220-
std::string typeDisplayName = "";
42214220

42224221
moa_try
42234222

@@ -4245,8 +4244,9 @@ MoaError TStdXtra_IMoaMmXScript::GetTypeDisplayName(MoaMmSymbol typeSymbol, std:
42454244
ThrowErr(pObj->drPlayerInterfacePointer->GetCastMemTypeDisplayName(typeSymbol, (PMoaChar)typeDisplayNameStringPointer, typeDisplayNameStringSize));
42464245
}
42474246

4247+
std::string &typeDisplayName = *typeDisplayNamePointer;
42484248
typeDisplayName = (PMoaChar)typeDisplayNameStringPointer;
4249-
*typeDisplayNamePointer = Asset::trimEllipsis(typeDisplayName);
4249+
Asset::trimEllipsis(typeDisplayName);
42504250

42514251
moa_catch
42524252

0 commit comments

Comments
 (0)