First sweep moving URLs to a constants file

This commit is contained in:
Sky
2013-12-13 14:58:11 +00:00
parent 808ca76363
commit 979946b7bb
11 changed files with 56 additions and 20 deletions

View File

@ -21,6 +21,7 @@
#include <QJsonObject>
#include <memory>
#include "logic/net/URLConstants.h"
#include "OpSys.h"
class Rule;
@ -30,7 +31,7 @@ class OneSixLibrary
private:
// basic values used internally (so far)
QString m_name;
QString m_base_url = "https://libraries.minecraft.net/";
QString m_base_url = "https://" + URLConstants::LIBRARY_BASE;
QList<std::shared_ptr<Rule>> m_rules;
// custom values