mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Fix dscanner sugesstions in std/uuid.d
This commit is contained in:
parent
9872247505
commit
c35bab6c93
1 changed files with 4 additions and 4 deletions
|
@ -528,7 +528,7 @@ public struct UUID
|
||||||
{
|
{
|
||||||
//variant is stored in octet 7
|
//variant is stored in octet 7
|
||||||
//which is index 8, since indexes count backwards
|
//which is index 8, since indexes count backwards
|
||||||
auto octet7 = data[8]; //octet 7 is array index 8
|
immutable octet7 = data[8]; //octet 7 is array index 8
|
||||||
|
|
||||||
if ((octet7 & 0x80) == 0x00) //0b0xxxxxxx
|
if ((octet7 & 0x80) == 0x00) //0b0xxxxxxx
|
||||||
return Variant.ncs;
|
return Variant.ncs;
|
||||||
|
@ -589,7 +589,7 @@ public struct UUID
|
||||||
{
|
{
|
||||||
//version is stored in octet 9
|
//version is stored in octet 9
|
||||||
//which is index 6, since indexes count backwards
|
//which is index 6, since indexes count backwards
|
||||||
auto octet9 = data[6];
|
immutable octet9 = data[6];
|
||||||
if ((octet9 & 0xF0) == 0x10)
|
if ((octet9 & 0xF0) == 0x10)
|
||||||
return Version.timeBased;
|
return Version.timeBased;
|
||||||
else if ((octet9 & 0xF0) == 0x20)
|
else if ((octet9 & 0xF0) == 0x20)
|
||||||
|
@ -643,7 +643,7 @@ public struct UUID
|
||||||
*/
|
*/
|
||||||
@safe pure nothrow @nogc void swap(ref UUID rhs)
|
@safe pure nothrow @nogc void swap(ref UUID rhs)
|
||||||
{
|
{
|
||||||
auto bck = data;
|
immutable bck = data;
|
||||||
data = rhs.data;
|
data = rhs.data;
|
||||||
rhs.data = bck;
|
rhs.data = bck;
|
||||||
}
|
}
|
||||||
|
@ -1387,7 +1387,7 @@ if (isInputRange!Range
|
||||||
|
|
||||||
parseLoop: while (!uuidRange.empty)
|
parseLoop: while (!uuidRange.empty)
|
||||||
{
|
{
|
||||||
dchar character = uuidRange.front;
|
immutable character = uuidRange.front;
|
||||||
|
|
||||||
if (character == '-')
|
if (character == '-')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue