Skip to content

Commit 4833fac

Browse files
committed
style: fix readability/braces cpplint whitespace violations
1 parent 3a0114c commit 4833fac

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

CPPLINT.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
filter=-whitespace/comments,-whitespace/indent
33

44
# Disable readability checks
5-
filter=-readability/casting,-readability/braces
5+
filter=-readability/casting
66

77
# Disable build checks
88
filter=-build/include_subdir,-build/include

ColorCopDlg.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,12 +1618,12 @@ void CColorCopDlg::OnMouseMove(UINT nFlags, CPoint point) {
16181618
dLength,
16191619
dAngle);
16201620

1621-
} else if ((m_Appflags & Sampling3x3)||
1622-
(m_Appflags & Sampling5x5)||
1621+
} else if ((m_Appflags & Sampling3x3) ||
1622+
(m_Appflags & Sampling5x5) ||
16231623
(m_Appflags & SamplingMULTI)) {
16241624
strStatus.LoadString(IDS_EYEDROPPING);
16251625
strStatus += ", %dx%d";
1626-
strStatus.Format(strStatus, point.x, point.y, m_iSamplingOffset*2+1, m_iSamplingOffset*2+1);
1626+
strStatus.Format(strStatus, point.x, point.y, m_iSamplingOffset * 2 + 1, m_iSamplingOffset * 2 + 1);
16271627

16281628
} else { // SampleRate == 1
16291629
strStatus.LoadString(IDS_EYEDROPPING);
@@ -1863,7 +1863,7 @@ BOOL CColorCopDlg::PreTranslateMessage(MSG* pMsg) {
18631863
* exit the app
18641864
************************************************/
18651865

1866-
if (pMsg->message == WM_KEYDOWN)
1866+
if (pMsg->message == WM_KEYDOWN) {
18671867
if (pMsg->wParam == VK_ESCAPE) {
18681868
if (m_isEyedropping || m_isMagnifying) {
18691869
// dropper or magnifier in use
@@ -1921,7 +1921,7 @@ BOOL CColorCopDlg::PreTranslateMessage(MSG* pMsg) {
19211921
break;
19221922
}
19231923
}
1924-
1924+
}
19251925
return CDialog::PreTranslateMessage(pMsg);
19261926
}
19271927

@@ -2567,7 +2567,7 @@ bool CColorCopDlg::AveragePixelArea(HDC hdc, int* m_R, int* m_G, int* m_B, CPoin
25672567
COLORREF crefxy;
25682568

25692569
offset = m_iSamplingOffset;
2570-
elements = (m_iSamplingOffset*2+1)*(m_iSamplingOffset*2+1);
2570+
elements = (m_iSamplingOffset * 2 + 1) * (m_iSamplingOffset * 2 + 1);
25712571

25722572
for (xrel = point.x - offset; xrel <= point.x + offset; xrel++) {
25732573
for (yrel = point.y - offset; yrel <= point.y + offset; yrel++) {
@@ -3265,10 +3265,10 @@ void CColorCopDlg::OnPopupSamplingDecreasemultipixelaverage() {
32653265

32663266
if (m_iSamplingOffset > MULTIPIX_MIN) {
32673267
m_iSamplingOffset--;
3268-
strStatus.Format(strStatus, m_iSamplingOffset*2+1, m_iSamplingOffset*2+1);
3268+
strStatus.Format(strStatus, m_iSamplingOffset * 2 + 1, m_iSamplingOffset * 2 + 1);
32693269
} else {
32703270
strStatus.LoadString(IDS_MULTIPIX_LIMIT);
3271-
strStatus.Format(strStatus, MULTIPIX_MIN*2+1, MULTIPIX_MAX*2+1);
3271+
strStatus.Format(strStatus, MULTIPIX_MIN * 2 + 1, MULTIPIX_MAX * 2 + 1);
32723272
}
32733273
SetStatusBarText(strStatus);
32743274
}
@@ -3284,10 +3284,10 @@ void CColorCopDlg::OnPopupSamplingIncreasemultipixelaverage() {
32843284

32853285
if (m_iSamplingOffset < MULTIPIX_MAX) {
32863286
m_iSamplingOffset++;
3287-
strStatus.Format(strStatus, m_iSamplingOffset*2+1, m_iSamplingOffset*2+1);
3287+
strStatus.Format(strStatus, m_iSamplingOffset * 2 + 1, m_iSamplingOffset * 2 + 1);
32883288
} else {
32893289
strStatus.LoadString(IDS_MULTIPIX_LIMIT);
3290-
strStatus.Format(strStatus, MULTIPIX_MIN*2+1, MULTIPIX_MAX*2+1);
3290+
strStatus.Format(strStatus, MULTIPIX_MIN * 2 + 1, MULTIPIX_MAX * 2 + 1);
32913291
}
32923292
SetStatusBarText(strStatus);
32933293
}

0 commit comments

Comments
 (0)