Create an enum for price sources

Probably settingscache would have been the correct place for the enum,
but keeping it in the same class/file where price sources are defined
sounds cleaner to me
This commit is contained in:
Fabio Bas
2014-07-02 21:42:04 +02:00
parent a9ffbf5d2d
commit 9ca5908de5
3 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -648,10 +648,10 @@ void TabDeckEditor::actUpdatePrices()
switch(settingsCache->getPriceTagSource())
{
case 0:
case AbstractPriceUpdater::BLPPriceSource:
up = new BLPPriceUpdater(deckModel->getDeckList());
break;
case 1:
case AbstractPriceUpdater::DBPriceSource:
up = new DBPriceUpdater(deckModel->getDeckList());
break;
}