Skip to content

Vs2015compile fixes#330

Open
RusTit wants to merge 2 commits intosplintermind:DF2016from
RusTit:vs2015compile-fixes
Open

Vs2015compile fixes#330
RusTit wants to merge 2 commits intosplintermind:DF2016from
RusTit:vs2015compile-fixes

Conversation

@RusTit
Copy link

@RusTit RusTit commented Jul 3, 2017

No description provided.

Hero2006 added 2 commits July 4, 2017 07:43
D:\code\qt\Dwarf-Therapist\src\grid_view\rolecolumn.cpp:107:
D:\code\qt\dwarf-current\Dwarf-Therapist\src\dfinstancewindows.cpp:92: C2131: ўла ¦Ґ­ЁҐ ­Ґ ®ЇаҐ¤Ґ«пҐвбп Є®­бв ­в®©
@RusTit
Copy link
Author

RusTit commented Jul 3, 2017

Hi, this fix just allow to compile code using VS 2015/2017 (at current branch DF2016 this remeains).
This version doesn't support DF x64, mostly because of different types (VIRTADDR = quint32 and other), can I try to fix it?

char buf[len];
read_raw(buffer_addr, len, buf);
return QTextCodec::codecForName("IBM437")->toUnicode(buf, len);
std::unique_ptr<char[]> buf = std::make_unique<char[]>(len);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in #320, we want to avoid doing heap allocation in a hot path. The fix I have pending avoids heap allocation and uses VLAs if supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments