Skip to content

Commit 2ae263a

Browse files
committed
style(lint): remove superfluous blank lines and tidy whitespace; enable cpplint blank_line check
1 parent 306b2cf commit 2ae263a

File tree

5 files changed

+11
-169
lines changed

5 files changed

+11
-169
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/braces,-whitespace/blank_line,-whitespace/comments,-whitespace/indent
2+
filter=-whitespace/braces,-whitespace/comments,-whitespace/indent
33

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

ColorCop.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ BOOL CColorCopApp::InitInstance()
7575
int nResponse = dlg.DoModal(); // Launch the color cop dialog
7676

7777
if ((nResponse == IDOK) || (nResponse == IDCANCEL)) {
78-
7978
CloseApplication(); // write the data to a file
8079
}
8180

@@ -176,7 +175,6 @@ BOOL CColorCopApp::InitApplication()
176175
}
177176

178177
void CColorCopApp::LoadDefaultSettings() {
179-
180178
// This function is called when we can't find a .DAT file
181179
// with the persistent variables, or it was an old dat file.
182180
// Set the default settings and custom colors.
@@ -252,7 +250,6 @@ void CColorCopApp::Serialize(CArchive& ar)
252250
ar << dlg.ColorHistory[w];
253251

254252
ar << dlg.m_iSamplingOffset;
255-
256253
} catch (CArchiveException*) {
257254
AfxMessageBox(IDS_ERROR_SAVING);
258255
}
@@ -271,7 +268,6 @@ void CColorCopApp::Serialize(CArchive& ar)
271268
ar >> dlg.ColorHistory[w];
272269

273270
ar >> dlg.m_iSamplingOffset;
274-
275271
} catch (CArchiveException*) {
276272
AfxMessageBox(IDS_ERROR_LOADING);
277273
}

0 commit comments

Comments
 (0)