forked from qt-creator/qt-creator
Utils: Fix initialization
Change-Id: I71a7c408a1ab0e6073a17884299d087688b1e2d2 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -111,7 +111,7 @@ struct alignas(16) StringDataLayout
|
||||
shortString[i] = string[i];
|
||||
} else {
|
||||
control = {0, true, true};
|
||||
reference = {string, Size - 1, 0};
|
||||
reference = {{string}, Size - 1, 0};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ struct alignas(16) StringDataLayout<MaximumShortStringDataAreaSize,
|
||||
shortString[i] = string[i];
|
||||
} else {
|
||||
control = {0, true, true};
|
||||
reference = {string, Size - 1, 0};
|
||||
reference = {{string}, Size - 1, 0};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user