diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 14:34:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 20:05:19 (GMT) |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Tests/MFC/mfc1/mfc1View.h | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | CMake-d9fd2f5402eeaa345691313658e02b51038f570b.zip CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.bz2 |
Revise C++ coding style using clang-format
Run the `Utilities/Scripts/clang-format.bash` script to update
all our C++ code to a new style defined by `.clang-format`.
Use `clang-format` version 3.8.
* If you reached this commit for a line in `git blame`, re-run the blame
operation starting at the parent of this commit to see older history
for the content.
* See the parent commit for instructions to rebase a change across this
style transition commit.
Diffstat (limited to 'Tests/MFC/mfc1/mfc1View.h')
-rw-r--r-- | Tests/MFC/mfc1/mfc1View.h | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/Tests/MFC/mfc1/mfc1View.h b/Tests/MFC/mfc1/mfc1View.h index 4244653..8c827bb 100644 --- a/Tests/MFC/mfc1/mfc1View.h +++ b/Tests/MFC/mfc1/mfc1View.h @@ -1,48 +1,47 @@ // mfc1View.h : interface of the Cmfc1View class // - #pragma once - class Cmfc1View : public CView { protected: // create from serialization only - Cmfc1View(); - DECLARE_DYNCREATE(Cmfc1View) + Cmfc1View(); + DECLARE_DYNCREATE(Cmfc1View) -// Attributes + // Attributes public: - Cmfc1Doc* GetDocument() const; + Cmfc1Doc* GetDocument() const; -// Operations + // Operations +public: + // Overrides public: + virtual void OnDraw(CDC* pDC); // overridden to draw this view + virtual BOOL PreCreateWindow(CREATESTRUCT& cs); -// Overrides - public: - virtual void OnDraw(CDC* pDC); // overridden to draw this view -virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: - virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); - virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); - virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); + virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); + virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); + virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); -// Implementation + // Implementation public: - virtual ~Cmfc1View(); + virtual ~Cmfc1View(); #ifdef _DEBUG - virtual void AssertValid() const; - virtual void Dump(CDumpContext& dc) const; + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; #endif protected: - -// Generated message map functions + // Generated message map functions protected: - DECLARE_MESSAGE_MAP() + DECLARE_MESSAGE_MAP() }; -#ifndef _DEBUG // debug version in mfc1View.cpp +#ifndef _DEBUG // debug version in mfc1View.cpp inline Cmfc1Doc* Cmfc1View::GetDocument() const - { return reinterpret_cast<Cmfc1Doc*>(m_pDocument); } +{ + return reinterpret_cast<Cmfc1Doc*>(m_pDocument); +} #endif |