Index: Source/platform/UUID.cpp |
diff --git a/Source/platform/UUID.cpp b/Source/platform/UUID.cpp |
index f732687e29fd359eb11b042dc9c3fe8394ca5f6c..80287219e88339892fc9a50905d578d87f2bb5ea 100644 |
--- a/Source/platform/UUID.cpp |
+++ b/Source/platform/UUID.cpp |
@@ -46,14 +46,14 @@ String createCanonicalUUIDString() |
StringBuilder builder; |
builder.reserveCapacity(36); |
appendUnsignedAsHexFixedSize(randomData[0], builder, 8, Lowercase); |
- builder.append("-"); |
+ builder.append('-'); |
appendUnsignedAsHexFixedSize(randomData[1] >> 16, builder, 4, Lowercase); |
- builder.append("-4"); |
+ builder.appendLiteral("-4"); |
appendUnsignedAsHexFixedSize(randomData[1] & 0x00000fff, builder, 3, Lowercase); |
- builder.append("-"); |
+ builder.append('-'); |
appendUnsignedAsHexFixedSize((randomData[2] >> 30) | 0x8, builder, 1, Lowercase); |
appendUnsignedAsHexFixedSize((randomData[2] >> 16) & 0x00000fff, builder, 3, Lowercase); |
- builder.append("-"); |
+ builder.append('-'); |
appendUnsignedAsHexFixedSize(randomData[2] & 0x0000ffff, builder, 4, Lowercase); |
appendUnsignedAsHexFixedSize(randomData[3], builder, 8, Lowercase); |
return builder.toString(); |