mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Use boost::lexical_cast instead of stringstreams.
This commit is contained in:
parent
b9d02b0482
commit
24e2d1d3f2
@ -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<String>(uuid);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user