Skip to content

Commit

Permalink
clang formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenegriffin committed Jun 17, 2024
1 parent ae5b419 commit 58b0304
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
// A bug in annotations in shobjidl.h forces us to disable 6387 to include afxwin.h
#pragma warning(push)
#pragma warning( \
disable : 6387) // Warning C6387 'argument' may be 'value': this does not adhere to the specification for the function 'function name': Lines: x, y
disable : 6387) // Warning C6387 'argument' may be 'value': this does not adhere to the specification for the function 'function name': Lines: x, y
#include <afxwin.h> // MFC core and standard components
#pragma warning(pop)
#include <afxcmn.h> // MFC support for Windows Common Controls
Expand Down
2 changes: 1 addition & 1 deletion UI/Controls/SortList/ContentsTableListCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace controls::sortlistctrl
BEGIN_MESSAGE_MAP(CContentsTableListCtrl, CSortListCtrl)
#pragma warning(push)
#pragma warning( \
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
ON_NOTIFY_REFLECT(LVN_ITEMCHANGED, OnItemChanged)
#pragma warning(pop)
ON_WM_KEYDOWN()
Expand Down
2 changes: 1 addition & 1 deletion UI/Controls/SortList/SingleMAPIPropListCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace controls::sortlistctrl
BEGIN_MESSAGE_MAP(CSingleMAPIPropListCtrl, CSortListCtrl)
#pragma warning(push)
#pragma warning( \
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
ON_NOTIFY_REFLECT(NM_DBLCLK, OnDblclk)
#pragma warning(pop)
ON_WM_KEYDOWN()
Expand Down
2 changes: 1 addition & 1 deletion UI/Controls/SortList/SortHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace controls::sortlistctrl
ON_MESSAGE(WM_MFCMAPI_SAVECOLUMNORDERHEADER, msgOnSaveColumnOrder)
#pragma warning(push)
#pragma warning( \
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomDraw)
#pragma warning(pop)
END_MESSAGE_MAP()
Expand Down
2 changes: 1 addition & 1 deletion UI/Controls/SortList/SortListCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace controls::sortlistctrl
ON_WM_DRAWITEM()
#pragma warning(push)
#pragma warning( \
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
ON_NOTIFY_REFLECT(LVN_DELETEALLITEMS, OnDeleteAllItems)
ON_NOTIFY_REFLECT(LVN_DELETEITEM, OnDeleteItem)
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomDraw)
Expand Down
2 changes: 1 addition & 1 deletion UI/Controls/StyleTree/StyleTreeCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace controls
BEGIN_MESSAGE_MAP(StyleTreeCtrl, CTreeCtrl)
#pragma warning(push)
#pragma warning( \
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
disable : 26454) // Warning C26454 Arithmetic overflow: 'operator' operation produces a negative unsigned result at compile time
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW, OnCustomDraw)
ON_NOTIFY_REFLECT(NM_RCLICK, OnRightClick)
ON_NOTIFY_REFLECT(TVN_GETDISPINFO, OnGetDispInfo)
Expand Down
4 changes: 2 additions & 2 deletions core/mapi/mapiFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ namespace file
LPITNEF lpTNEF = nullptr;
#pragma warning(push)
#pragma warning( \
disable : 28159) // Warning C28159 Consider using *function_name_1* instead of *function_name_2*. Reason: reason
disable : 28159) // Warning C28159 Consider using *function_name_1* instead of *function_name_2*. Reason: reason
//GetTickCount is OK for what we're doing
static auto wKeyVal = static_cast<WORD>(GetTickCount() + 1);
#pragma warning(pop)
Expand Down Expand Up @@ -583,7 +583,7 @@ namespace file

#pragma warning(push)
#pragma warning( \
disable : 28159) // Warning C28159 Consider using *function_name_1* instead of *function_name_2*. Reason: reason
disable : 28159) // Warning C28159 Consider using *function_name_1* instead of *function_name_2*. Reason: reason
//GetTickCount is OK for what we're doing
static auto wKeyVal = static_cast<WORD>(GetTickCount() + 1);
#pragma warning(pop)
Expand Down
2 changes: 1 addition & 1 deletion core/mapi/mapiFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ namespace mapi

#pragma warning(push)
#pragma warning( \
disable : 26476) // Warning C26476 Expression/symbol '' uses a naked union '' with multiple type pointers: Use variant instead (type.7).
disable : 26476) // Warning C26476 Expression/symbol '' uses a naked union '' with multiple type pointers: Use variant instead (type.7).
inline const SBinary& getBin(_In_ const _SPropValue* prop) noexcept
{
if (!prop) assert(false);
Expand Down
2 changes: 1 addition & 1 deletion mapistub

0 comments on commit 58b0304

Please sign in to comment.