minor cleanup

Fri, 06 Dec 2013 21:30:58 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 06 Dec 2013 21:30:58 +0200
changeset 548
a99f41732cd2
parent 547
e2e6ef2f40de
child 549
715d9a7f6598

minor cleanup

src/download.cpp file | annotate | diff | comparison | revisions
--- a/src/download.cpp	Fri Dec 06 21:25:49 2013 +0200
+++ b/src/download.cpp	Fri Dec 06 21:30:58 2013 +0200
@@ -279,21 +279,15 @@
 // =============================================================================
 // -----------------------------------------------------------------------------
 QPushButton* PartDownloader::getButton (PartDownloader::Button i)
-{	typedef QDialogButtonBox QDBB;
-	alias btnbox = ui->buttonBox;
-
-	switch (i)
+{	switch (i)
 	{	case Download:
-		{	return m_downloadButton;
-		}
+			return m_downloadButton;
 
 		case Abort:
-		{	return qobject_cast<QPushButton*> (btnbox->button (QDBB::Abort));
-		}
+			return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Abort));
 
 		case Close:
-		{	return qobject_cast<QPushButton*> (btnbox->button (QDBB::Close));
-		}
+			return qobject_cast<QPushButton*> (ui->buttonBox->button (QDialogButtonBox::Close));
 	}
 
 	return null;

mercurial