From 3c61b16e7bf3ac2279a1a9d5559e6f17f3cf668b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 17 Jan 2017 17:24:09 +0100 Subject: [PATCH] Code formatting --- common/view/view.cpp | 2 +- include/view/view.h | 6 +++--- pcbnew/board_commit.cpp | 4 ++-- pcbnew/router/length_tuner_tool.h | 6 ++---- pcbnew/router/router_tool.h | 6 +++--- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/common/view/view.cpp b/common/view/view.cpp index 838fad94b6..b6611153cd 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -1341,7 +1341,7 @@ bool VIEW::IsVisible( const VIEW_ITEM* aItem ) const } -void VIEW::Update( VIEW_ITEM *aItem ) +void VIEW::Update( VIEW_ITEM* aItem ) { Update( aItem, ALL ); } diff --git a/include/view/view.h b/include/view/view.h index 4f7014345f..6de865a7a8 100644 --- a/include/view/view.h +++ b/include/view/view.h @@ -128,14 +128,14 @@ public: bool IsVisible( const VIEW_ITEM* aItem ) const; /** - * Function ViewUpdate() + * Function Update() * For dynamic VIEWs, informs the associated VIEW that the graphical representation of * this item has changed. For static views calling has no effect. * * @param aUpdateFlags: how much the object has changed. */ - void Update( VIEW_ITEM* aItem ); - void Update( VIEW_ITEM* aItem, int aUpdateFlags ); + void Update( VIEW_ITEM* aItem ); + void Update( VIEW_ITEM* aItem, int aUpdateFlags ); /** * Function SetRequired() diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index 2b39111d17..e245782269 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -249,10 +249,10 @@ void BOARD_COMMIT::Push( const wxString& aMessage ) undoList.PushItem( itemWrapper ); } - if ( boardItem->Type() == PCB_MODULE_T ) + if( boardItem->Type() == PCB_MODULE_T ) { MODULE* module = static_cast( boardItem ); - module->RunOnChildren( [&view] ( BOARD_ITEM *aItem ){ view->Update( aItem ); } ); + module->RunOnChildren( [&view] ( BOARD_ITEM* aItem ) { view->Update( aItem ); } ); } view->Update ( boardItem ); diff --git a/pcbnew/router/length_tuner_tool.h b/pcbnew/router/length_tuner_tool.h index 4d861578aa..89724c48dc 100644 --- a/pcbnew/router/length_tuner_tool.h +++ b/pcbnew/router/length_tuner_tool.h @@ -42,12 +42,10 @@ public: int ClearMeanders( const TOOL_EVENT& aEvent ); private: - void performTuning( ); + void performTuning(); int mainLoop( PNS::ROUTER_MODE aMode ); void handleCommonEvents( const TOOL_EVENT& aEvent ); - void updateStatusPopup ( PNS_TUNE_STATUS_POPUP& aPopup ); - - + void updateStatusPopup( PNS_TUNE_STATUS_POPUP& aPopup ); PNS::MEANDER_SETTINGS m_savedMeanderSettings; }; diff --git a/pcbnew/router/router_tool.h b/pcbnew/router/router_tool.h index 5191e9f4f1..c25ca6f442 100644 --- a/pcbnew/router/router_tool.h +++ b/pcbnew/router/router_tool.h @@ -34,9 +34,9 @@ public: bool Init() override; void Reset( RESET_REASON aReason ) override; - int RouteSingleTrace ( const TOOL_EVENT& aEvent ); - int RouteDiffPair ( const TOOL_EVENT& aEvent ); - int InlineDrag ( const TOOL_EVENT& aEvent ); + int RouteSingleTrace( const TOOL_EVENT& aEvent ); + int RouteDiffPair( const TOOL_EVENT& aEvent ); + int InlineDrag( const TOOL_EVENT& aEvent ); int DpDimensionsDialog ( const TOOL_EVENT& aEvent ); int SettingsDialog ( const TOOL_EVENT& aEvent );