X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Fcommon%2Fuuid.cpp;h=1a6ee5a0768ff45926f7d9f71ba83cebcb08fe4d;hp=f0b8704be40fd093d2ca9b168a4c8106037296e7;hb=22339c898f8c04af609419f036828323b26f480f;hpb=d4b44cdc2002d9214a0ae2528be8b1cab14c5120 diff --git a/source/common/uuid.cpp b/source/common/uuid.cpp index f0b8704..1a6ee5a 100644 --- a/source/common/uuid.cpp +++ b/source/common/uuid.cpp @@ -37,29 +37,29 @@ string GenerateUUID() #include - FILE *uuid_hdl = popen("uuidgen", "r"); + FILE *uuidhdl = popen("uuidgen", "r"); - if (uuid_hdl == NULL) { + if (uuidhdl == NULL) { return ""; } - char strdata[64]; - std::string uuidout; + char strData[64]; + std::string uuidOut; - while (fgets(strdata, sizeof(strdata), uuid_hdl) != NULL){ - uuidout.append(strdata); + while (fgets(strData, sizeof(strData), uuidhdl) != NULL){ + uuidOut.append(strData); } - pclose(uuid_hdl); + pclose(uuidhdl); #endif - if (uuidout.back() == '\n'){ + if (uuidOut.back() == '\n'){ - uuidout.erase(uuidout.end()-1); + uuidOut.erase(uuidOut.end()-1); } - return uuidout; + return uuidOut; } \ No newline at end of file