1
0
Fork 0

use constant

This commit is contained in:
jsteemann 2016-05-01 23:43:01 +02:00
parent 1a942ca589
commit 575e6e38d7
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ uint64_t VelocyPackHelper::hashByAttributes(
for (auto const& attr : attributes) {
VPackSlice sub = slice.get(attr).resolveExternal();
if (sub.isNone()) {
if (attr == "_key" && !key.empty()) {
if (attr == StaticStrings::KeyString && !key.empty()) {
VPackBuilder temporaryBuilder;
temporaryBuilder.add(VPackValue(key));
hash = temporaryBuilder.slice().normalizedHash(hash);