mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Coding style: remove Java-style function definition
Remove a few cases of
	void fun() {
		...
	}
While touching these functions, fix a few other whitespace
coding style violations.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
			
			
This commit is contained in:
		
							parent
							
								
									73a230b6e6
								
							
						
					
					
						commit
						9ed5cf16a4
					
				
					 10 changed files with 31 additions and 18 deletions
				
			
		|  | @ -403,11 +403,11 @@ void MainWindow::enableDisableOtherDCsActions() | |||
| 	ui.actionPreviousDC->setEnabled(nr); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::setDefaultState() { | ||||
| void MainWindow::setDefaultState() | ||||
| { | ||||
| 	setApplicationState("Default"); | ||||
| 	if (mainTab->getEditMode() != MainTab::NONE) { | ||||
| 	if (mainTab->getEditMode() != MainTab::NONE) | ||||
| 		ui.bottomLeft->currentWidget()->setEnabled(false); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| MainWindow *MainWindow::instance() | ||||
|  | @ -437,7 +437,8 @@ void MainWindow::recreateDiveList() | |||
| 	MultiFilterSortModel::instance()->myInvalidate(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::configureToolbar() { | ||||
| void MainWindow::configureToolbar() | ||||
| { | ||||
| 	if (current_dive) { | ||||
| 		bool freeDiveMode = current_dive->dc.divemode == FREEDIVE; | ||||
| 		ui.profCalcCeiling->setDisabled(freeDiveMode); | ||||
|  | @ -1839,7 +1840,8 @@ void MainWindow::registerApplicationState(const QByteArray& state, QWidget *topL | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| void MainWindow::setApplicationState(const QByteArray& state) { | ||||
| void MainWindow::setApplicationState(const QByteArray &state) | ||||
| { | ||||
| 	if (!applicationState.keys().contains(state)) | ||||
| 		return; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue