Simplify string concat code

We don't need iterators here to do a simple concat.  Change to a range
based loop.

Change-Id: I7d4e785363fe41937f18ae1ba0e927a970d939b6
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/tests/test-utils.cpp b/tests/test-utils.cpp
index 5b5925a..88f9d7d 100644
--- a/tests/test-utils.cpp
+++ b/tests/test-utils.cpp
@@ -193,16 +193,13 @@
 		unsigned int errorNum = 1;
 		while (results.popError(error)) {
 			std::string context;
-			std::vector<std::string>::iterator itr =
-				error.context.begin();
-			for (; itr != error.context.end(); itr++) {
-				context += *itr;
+			for (const std::string &str : error.context) {
+				context += str;
 			}
 
-			std::cout << "Error #" << errorNum << std::endl
-				  << "  context: " << context << std::endl
-				  << "  desc:    " << error.description
-				  << std::endl;
+			std::cout << "Error #" << errorNum << '\n'
+				  << "  context: " << context << '\n'
+				  << "  desc:    " << error.description << '\n';
 			++errorNum;
 		}
 		return 0;