Skip to content

Commit b22fea7

Browse files
committed
style: fix cpplint whitespace/comments violations
1 parent 665b11e commit b22fea7

File tree

10 files changed

+100
-114
lines changed

10 files changed

+100
-114
lines changed

CPPLINT.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Disable whitespace checks
2-
filter=-whitespace/comments,-whitespace/indent
2+
filter=-whitespace/indent
33

44
# Disable readability checks
55
filter=-readability/casting

ColorCop.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
// CColorCopApp
2222

2323
BEGIN_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)
2929
END_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
}

ColorCop.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,26 @@ class CColorCopApp : public CWinApp {
4444

4545
// Overrides
4646
// ClassWizard generated virtual function overrides
47-
//{{AFX_VIRTUAL(CColorCopApp)
47+
//{{AFX_VIRTUAL(CColorCopApp) // NOLINT(whitespace/comments)
4848
public:
4949
virtual BOOL InitInstance();
5050
virtual BOOL InitApplication();
5151
virtual void Serialize(CArchive& ar);
52-
//}}AFX_VIRTUAL
52+
//}}AFX_VIRTUAL // NOLINT(whitespace/comments)
5353

5454
// Implementation
5555

56-
//{{AFX_MSG(CColorCopApp)
56+
//{{AFX_MSG(CColorCopApp) // NOLINT(whitespace/comments)
5757
// NOTE - the ClassWizard will add and remove member functions here.
5858
// DO NOT EDIT what you see in these blocks of generated code !
59-
//}}AFX_MSG
59+
//}}AFX_MSG // NOLINT(whitespace/comments)
6060
DECLARE_MESSAGE_MAP()
6161
};
6262

6363

6464
/////////////////////////////////////////////////////////////////////////////
6565

66-
//{{AFX_INSERT_LOCATION}}
66+
//{{AFX_INSERT_LOCATION}} // NOLINT(whitespace/comments)
6767
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
6868

69-
#endif // !defined(AFX_HTMLCOP_H__EC2A34E4_4FAA_11D3_81A0_A79013DBA62A__INCLUDED_)
69+
#endif // !defined(AFX_HTMLCOP_H__EC2A34E4_4FAA_11D3_81A0_A79013DBA62A__INCLUDED_) // NOLINT(whitespace/comments)

0 commit comments

Comments
 (0)