Access it by reference to prevent unnecessary copies 21/286821/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 13 Jan 2023 09:40:51 +0000 (18:40 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 13 Jan 2023 09:40:51 +0000 (18:40 +0900)
Change-Id: I5ac81bafbe55475fbc9f09ade6999a29a156f659
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/SttFeedback.cpp

index 5bd660335ada384004f781535e221f64e7981ca3..1d7d4996d1f5ffaad1f773761a5bed4b9e771695 100644 (file)
@@ -56,7 +56,7 @@ void SttFeedback::OnResult(
        } else {
                PRINTFUNC(DLOG_INFO, "Meaningful result : size (%zu)", results.size());
 
-               for(auto result : results) {
+               for(const auto& result : results) {
                        PRINTFUNC(DLOG_INFO, "Results");
                        if(!result.empty() && result.length() > 0) {
                                PRINTFUNC(DLOG_INFO, "%s\n", result.c_str());