mirror of https://github.com/Icinga/icinga2.git
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)
|
String Utility::NewUUID(void)
|
||||||
{
|
{
|
||||||
boost::uuids::uuid uuid = boost::uuids::random_generator()();
|
boost::uuids::uuid uuid = boost::uuids::random_generator()();
|
||||||
|
return boost::lexical_cast<String>(uuid);
|
||||||
stringstream us;
|
|
||||||
us << uuid;
|
|
||||||
|
|
||||||
return us.str();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue