From 968a546dcbc78c7dfba2791723e92e271a84352e Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 11 Feb 2023 14:31:18 -0800 Subject: [PATCH] use upper() function Signed-off-by: Rosen Penev --- src/asfvideo.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/asfvideo.cpp b/src/asfvideo.cpp index 6faa271e..b1482e00 100644 --- a/src/asfvideo.cpp +++ b/src/asfvideo.cpp @@ -12,6 +12,7 @@ #include "error.hpp" #include "futils.hpp" #include "helper_functions.hpp" +#include "utils.hpp" // ***************************************************************************** // class member definitions namespace Exiv2 { @@ -71,13 +72,9 @@ std::string AsfVideo::GUIDTag::to_string() { } // Concatenate all strings into a single string - std::string strGuid = ss.str(); // Convert the string to uppercase - for (auto& c : strGuid) { - c = toupper(c); - } // Example of output 399595EC-8667-4E2D-8FDB-98814CE76C1E - return strGuid; + return Internal::upper(ss.str()); } bool AsfVideo::GUIDTag::operator<(const GUIDTag& other) const {