Skip to content

Commit 84303f3

Browse files
committed
added comment
1 parent dfd5c5f commit 84303f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DebugView++/MainFrame.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,9 @@ void CMainFrame::OnLogCrop(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/
11531153

11541154
LogFile temp;
11551155
m_logFile.Copy(selection.beginLine, selection.endLine, temp);
1156+
1157+
// notice although this looks efficient, it is not, class LogFile and its composites are 'moveable' only because they are copyable.
1158+
// so this might temporarily allocate quite a bit of memory
11561159
std::swap(temp, m_logFile);
11571160

11581161
m_logSources.ResetTimer();

0 commit comments

Comments
 (0)