Skip to content

Commit 7e32bd7

Browse files
committed
Code cleanups
1 parent 907f93c commit 7e32bd7

File tree

13 files changed

+104
-518
lines changed

13 files changed

+104
-518
lines changed

ActivityDoc.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,7 @@ void CActivityDoc::Dump(CDumpContext& dc) const
6565

6666
void CActivityDoc::Serialize(CArchive& ar)
6767
{
68-
if (ar.IsStoring())
69-
{
70-
// TODO: add storing code here
71-
}
72-
else
73-
{
74-
// TODO: add loading code here
75-
}
68+
// not serialized
7669
}
7770

7871
/////////////////////////////////////////////////////////////////////////////

MUSHclient.dsp

Lines changed: 17 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TextView.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ END_MESSAGE_MAP()
125125

126126
void CTextView::OnDraw(CDC* pDC)
127127
{
128+
CDocument* pDoc = GetDocument();
129+
ASSERT_VALID(pDoc);
128130
}
129131

130132
/////////////////////////////////////////////////////////////////////////////

Utilities.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Utilities.cpp
2+
3+
// handy utilities
4+
15
#include "stdafx.h"
26
#include "MUSHclient.h"
37

0 commit comments

Comments
 (0)