From 24e2d1d3f2000464d6b68a9263a77308f1f76b29 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 31 Jan 2013 10:10:51 +0100 Subject: [PATCH] Use boost::lexical_cast instead of stringstreams. --- lib/base/utility.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index ada3fbe89..b6cec477b 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -435,10 +435,6 @@ Utility::LoadIcingaLibrary(const String& library, bool module) String Utility::NewUUID(void) { boost::uuids::uuid uuid = boost::uuids::random_generator()(); - - stringstream us; - us << uuid; - - return us.str(); + return boost::lexical_cast(uuid); }