Skip to content

Commit

Permalink
QArrayDataPointer render fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Kobzev committed May 19, 2024
1 parent 9ca6871 commit 37a0d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lldb/qt6renderer/qarraydatapointer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from lldb import SBValue, SBData, eBasicTypeUnsignedLongLong
from lldb import SBValue, SBData, eBasicTypeInt
from .lazysynth import LazySynth


Expand Down Expand Up @@ -62,8 +62,8 @@ def update(self):
if d_d.GetValueAsUnsigned():
alloc = d_d.GetChildMemberWithName('alloc')
self._values[self._num_data_fields] = self._valobj.CreateValueFromData(
QArrayDataPointerSynth.PROP_CAPACITY, alloc.GetData(),
alloc.GetType())
QArrayDataPointerSynth.PROP_CAPACITY, alloc.GetData() if alloc else SBData.CreateDataFromInt(0),
alloc.GetType() if alloc else self._valobj.target.GetBasicType(eBasicTypeInt))
self._bump_field_counter()

d_ptr = d.GetChildMemberWithName('ptr')
Expand Down

0 comments on commit 37a0d45

Please sign in to comment.