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 19:13:05 +02:00
parent a9ffbf5d2d
commit 9ca5908de5
3 changed files with 10 additions and 7 deletions

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;
}