2121// CColorCopApp
2222
2323BEGIN_MESSAGE_MAP (CColorCopApp, CWinApp)
24- // {{AFX_MSG_MAP(CColorCopApp)
24+ // {{AFX_MSG_MAP(CColorCopApp) // NOLINT(whitespace/comments)
2525 // NOTE - the ClassWizard will add and remove mapping macros here.
2626 // DO NOT EDIT what you see in these blocks of generated code!
27- // }}AFX_MSG
27+ // }}AFX_MSG // NOLINT(whitespace/comments)
2828 ON_COMMAND(ID_HELP, CWinApp::OnHelp)
2929END_MESSAGE_MAP()
3030
@@ -62,7 +62,6 @@ BOOL CColorCopApp::InitInstance() {
6262 return false ;
6363 }
6464 }
65-
6665 // set the main window
6766 m_pMainWnd = &dlg;
6867
@@ -229,7 +228,7 @@ void CColorCopApp::Serialize(CArchive& ar) {
229228 ar << dlg.m_Appflags ;
230229 ar << dlg.WinLocX ;
231230 ar << dlg.WinLocY ;
232- for (int j = 0 ; j < kCustomColorCount ; j++) // load custom color values to array
231+ for (int j = 0 ; j < kCustomColorCount ; j++) // load custom color values to array
233232 ar << dlg.CustColorBank [j];
234233 for (int w = 0 ; w < kHistoryCount ; w++) // save color history values
235234 ar << dlg.ColorHistory [w];
@@ -247,12 +246,15 @@ void CColorCopApp::Serialize(CArchive& ar) {
247246 ar >> dlg.m_Appflags ;
248247 ar >> dlg.WinLocX ;
249248 ar >> dlg.WinLocY ;
250- for (int j = 0 ; j < kCustomColorCount ; j++) // load custom color values to array
249+ // load custom color values to array
250+ for (int j = 0 ; j < kCustomColorCount ; j++) {
251251 ar >> dlg.CustColorBank [j];
252- for (int w = 0 ; w < kHistoryCount ; w++) // save color history values
252+ }
253+ // load color history values to array
254+ for (int w = 0 ; w < kHistoryCount ; w++) {
253255 ar >> dlg.ColorHistory [w];
254-
255- ar >> dlg.m_iSamplingOffset ;
256+ }
257+ ar >> dlg.m_iSamplingOffset ;
256258 } catch (CArchiveException*) {
257259 AfxMessageBox (IDS_ERROR_LOADING);
258260 }
0 commit comments