Added a early return in ProgrammerOperandLength

This commit is contained in:
Nicholas Baron 2019-04-16 23:29:04 -07:00
commit c577b058a1

View file

@ -453,7 +453,7 @@ bool CopyPasteManager::TryOperandToULL(const wstring& operand, int numberBase, u
size_t CopyPasteManager::OperandLength(wstring operand, ViewMode mode, CategoryGroupType modeType, int programmerNumberBase) size_t CopyPasteManager::OperandLength(wstring operand, ViewMode mode, CategoryGroupType modeType, int programmerNumberBase)
{ {
if(modeType == CategoryGroupType::Converter) { if (modeType == CategoryGroupType::Converter) {
return operand.length(); return operand.length();
} }
@ -516,7 +516,7 @@ size_t CopyPasteManager::ProgrammerOperandLength(const wstring& operand, int num
break; break;
default: default:
// No defined prefixes/suffixes // No defined prefixes/suffixes
break; return 0;
} }
// UInt suffixes are common across all modes // UInt suffixes are common across all modes