From: Igor Kulaychuk Date: Wed, 22 Aug 2018 14:45:07 +0000 (+0300) Subject: Do not use std::equal for std::string X-Git-Tag: submit/tizen/20180921.084208~2^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72ecaa50b2b19ab0af9e1100ab5f3fe68dda7c58;p=sdk%2Ftools%2Fnetcoredbg.git Do not use std::equal for std::string --- diff --git a/src/debug/netcoredbg/valuewalk.cpp b/src/debug/netcoredbg/valuewalk.cpp index b728399..84a7c65 100644 --- a/src/debug/netcoredbg/valuewalk.cpp +++ b/src/debug/netcoredbg/valuewalk.cpp @@ -749,7 +749,7 @@ HRESULT Evaluator::HandleSpecialLocalVar( HRESULT Status; - if (!std::equal(captureName.begin(), captureName.end(), localName.begin())) + if (captureName != localName) return S_FALSE; // Substitute local value with its fields @@ -761,10 +761,9 @@ HRESULT Evaluator::HandleSpecialLocalVar( bool is_static, const std::string &name) { - HRESULT Status; if (is_static) return S_OK; - if (std::equal(captureName.begin(), captureName.end(), name.begin())) + if (captureName == name) return S_OK; if (!locals.insert(name).second) return S_OK; // already in the list @@ -794,10 +793,10 @@ HRESULT Evaluator::HandleSpecialThisParam( typeName = typeName.substr(start + 1); - if (!std::equal(hideClass.begin(), hideClass.end(), typeName.begin())) + if (hideClass != typeName) return S_FALSE; - if (!std::equal(displayClass.begin(), displayClass.end(), typeName.begin())) + if (displayClass != typeName) return S_OK; // just do not show this value // Substitute this with its fields