From beb524489ce8f36729bf58d23a6ed79e8639621f Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Thu, 22 Oct 2009 21:51:32 +0000 Subject: [PATCH] Small refactoring --- src/exp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exp.cpp b/src/exp.cpp index 969a80b..22080c6 100644 --- a/src/exp.cpp +++ b/src/exp.cpp @@ -30,7 +30,7 @@ namespace YAML std::string Str(unsigned ch) { - return std::string("") + static_cast(ch); + return std::string(1, static_cast(ch)); } // Escape