From d9a3ad36d685f6da5c6902996c81db3f77a30258 Mon Sep 17 00:00:00 2001 From: Nicholas Baron Date: Sun, 5 May 2019 15:13:05 -0700 Subject: [PATCH] Reverted CopyPasteManager.cpp --- src/CalcViewModel/Common/CopyPasteManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalcViewModel/Common/CopyPasteManager.cpp b/src/CalcViewModel/Common/CopyPasteManager.cpp index 5f774b33..ffe91d1b 100644 --- a/src/CalcViewModel/Common/CopyPasteManager.cpp +++ b/src/CalcViewModel/Common/CopyPasteManager.cpp @@ -274,7 +274,7 @@ bool CopyPasteManager::ExpressionRegExMatch(vector operands, ViewMode m { // Each operand only needs to match one of the available patterns. bool operandMatched = false; - for (const wregex& pattern : patterns) + for (const auto& pattern : patterns) { operandMatched = operandMatched || regex_match(operand, pattern); } @@ -283,7 +283,7 @@ bool CopyPasteManager::ExpressionRegExMatch(vector operands, ViewMode m { // Remove characters that are valid in the expression but we do not want to include in length calculations // or which will break conversion from string-to-ULL. - wstring operandValue = SanitizeOperand(operand); + const wstring operandValue = SanitizeOperand(operand); // If an operand exceeds the maximum length allowed, break and return. if (OperandLength(operandValue, mode, modeType, programmerNumberBase) > maxOperandLength)