forked from qt-creator/qt-creator
Utils: Fix spacing
Change-Id: I3c3f4e22ad64144f7ea92e671b9f582fd434b491 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -258,7 +258,7 @@ public:
|
||||
if (fitsNotInCapacity(newCapacity)) {
|
||||
if (Q_UNLIKELY(hasAllocatedMemory())) {
|
||||
m_data.allocated.data.pointer = Memory::reallocate(m_data.allocated.data.pointer,
|
||||
newCapacity + 1);
|
||||
newCapacity + 1);
|
||||
m_data.allocated.data.capacity = newCapacity;
|
||||
} else if (newCapacity <= shortStringCapacity()) {
|
||||
new (this) BasicSmallString{m_data.allocated.data.pointer, m_data.allocated.data.size};
|
||||
|
||||
@@ -92,7 +92,7 @@ struct ShortStringLayout {
|
||||
|
||||
template <uint MaximumShortStringDataAreaSize>
|
||||
struct ALIGNAS_16 StringDataLayout {
|
||||
static_assert( MaximumShortStringDataAreaSize >= 15, "Size must be greater equal than 15 bytes!");
|
||||
static_assert(MaximumShortStringDataAreaSize >= 15, "Size must be greater equal than 15 bytes!");
|
||||
static_assert(MaximumShortStringDataAreaSize < 64
|
||||
? ((MaximumShortStringDataAreaSize + 1) % 16) == 0
|
||||
: ((MaximumShortStringDataAreaSize + 2) % 16) == 0,
|
||||
|
||||
Reference in New Issue
Block a user