From 9792260b0037cbf1813ae033cc52130a9540dbfe Mon Sep 17 00:00:00 2001 From: mariusbancila Date: Mon, 18 Dec 2017 23:32:38 +0200 Subject: [PATCH] use braces for array init --- include/uuid.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uuid.cpp b/include/uuid.cpp index 00e7331..eb0c850 100644 --- a/include/uuid.cpp +++ b/include/uuid.cpp @@ -93,7 +93,7 @@ namespace uuids ::CoCreateGuid(&newId); std::array bytes = - { + {{ (unsigned char)((newId.Data1 >> 24) & 0xFF), (unsigned char)((newId.Data1 >> 16) & 0xFF), (unsigned char)((newId.Data1 >> 8) & 0xFF), @@ -113,7 +113,7 @@ namespace uuids (unsigned char)newId.Data4[5], (unsigned char)newId.Data4[6], (unsigned char)newId.Data4[7] - }; + }}; return uuid{ bytes }; @@ -129,7 +129,7 @@ namespace uuids CFRelease(newId); std::array byteArray = - { + {{ bytes.byte0, bytes.byte1, bytes.byte2, @@ -146,7 +146,7 @@ namespace uuids bytes.byte13, bytes.byte14, bytes.byte15 - }; + }}; return uuid{ byteArray }; #elif return uuid{}; @@ -161,4 +161,4 @@ namespace std { lhs.swap(rhs); } -} \ No newline at end of file +}