mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Show vector elements count in DebugLogs.
This commit is contained in:
parent
8eedc7b2ba
commit
dd381d9b56
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ bool DumpToTextCore(DumpToTextBuffer &to, const mtpPrime *&from, const mtpPrime
|
||||||
case mtpc_vector: {
|
case mtpc_vector: {
|
||||||
if (from < end) {
|
if (from < end) {
|
||||||
int32 cnt = *(from++);
|
int32 cnt = *(from++);
|
||||||
to.add("[ vector<0x").add(QString::number(vcons, 16)).add(">");
|
to.add("[ vector<0x").add(QString::number(vcons, 16)).add("> (").add(QString::number(cnt)).add(")");
|
||||||
if (cnt) {
|
if (cnt) {
|
||||||
to.add("\n").addSpaces(level);
|
to.add("\n").addSpaces(level);
|
||||||
for (int32 i = 0; i < cnt; ++i) {
|
for (int32 i = 0; i < cnt; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue