Merge pull request #115 from birarda/atp-mappings

make TRUNCATED_HASH_NUM_CHAR a non-static const
This commit is contained in:
Ryan Huffman 2016-03-15 15:57:06 -07:00
commit aa4c0ca15a

View file

@ -154,7 +154,7 @@ void AssetServer::performMappingMigration() {
qDebug() << "\tRenamed pre-mapping file" << fileInfo.fileName(); qDebug() << "\tRenamed pre-mapping file" << fileInfo.fileName();
// add a new mapping with the old extension and a truncated version of the hash // add a new mapping with the old extension and a truncated version of the hash
static const int TRUNCATED_HASH_NUM_CHAR = 16; const int TRUNCATED_HASH_NUM_CHAR = 16;
auto fakeFileName = "/" + hash.left(TRUNCATED_HASH_NUM_CHAR) + fullExtension; auto fakeFileName = "/" + hash.left(TRUNCATED_HASH_NUM_CHAR) + fullExtension;
qDebug() << "\tAdding a migration mapping from" << fakeFileName << "to" << hash; qDebug() << "\tAdding a migration mapping from" << fakeFileName << "to" << hash;