From: Steve Brokenshire Date: Wed, 11 Jan 2017 19:32:13 +0000 (+0000) Subject: uuid: Remove newline if there is a newline. X-Git-Tag: release-0.02~32 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=852cf9877ab4f1c0e6e2c1f53f2a03edd40c3c85;p=xestiacalendar%2F.git uuid: Remove newline if there is a newline. --- diff --git a/source/common/uuid.cpp b/source/common/uuid.cpp index 2831e88..224ec55 100644 --- a/source/common/uuid.cpp +++ b/source/common/uuid.cpp @@ -54,6 +54,12 @@ string GenerateUUID() #endif + if (uuidout.back() == '\n'){ + + uuidout.erase(uuidout.end()-1); + + } + return uuidout; } \ No newline at end of file