mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
get rid of magic number
This commit is contained in:
parent
21c2db7cdc
commit
672b4df7c1
1 changed files with 3 additions and 2 deletions
|
@ -1094,8 +1094,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co
|
|||
testConstructorType = "empty";
|
||||
}
|
||||
QString testConstructorValue = testConstructor.toString();
|
||||
if (testConstructorValue.size() > 80) {
|
||||
testConstructorValue = testConstructorValue.mid(0, 80) + "...";
|
||||
const int maxTestConstructorValueSize = 80;
|
||||
if (testConstructorValue.size() > maxTestConstructorValueSize) {
|
||||
testConstructorValue = testConstructorValue.mid(0, maxTestConstructorValueSize) + "...";
|
||||
}
|
||||
qCDebug(scriptengine) << "Error -- ScriptEngine::loadEntityScript() entity:" << entityID
|
||||
<< "failed to load entity script -- expected a function, got " + testConstructorType
|
||||
|
|
Loading…
Reference in a new issue