mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 01:42:40 +02:00
Merge pull request #115 from birarda/atp-mappings
make TRUNCATED_HASH_NUM_CHAR a non-static const
This commit is contained in:
commit
aa4c0ca15a
1 changed files with 21 additions and 21 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue