1
0
Fork 0

Make it compile. Probably still fishy.

This commit is contained in:
Max Neunhoeffer 2015-04-21 17:59:21 -07:00 committed by Michael Hackstein
parent 2882a61303
commit 6cd05d0154
1 changed files with 5 additions and 5 deletions

View File

@ -65,11 +65,11 @@ class SimpleEdgeExpander {
// TODO Error Handling // TODO Error Handling
return; return;
} }
std::unique_ptr<char[]>& key; std::unique_ptr<char> key;
string& collectionName = string(str, split); string collectionName = string(str, split);
auto const length = str->length() - split - 1; auto const length = source.size() - split - 1;
auto buffer = new char[length + 1]; auto buffer = new char[length + 1];
memcpy(buffer, *str + split + 1, length); memcpy(buffer, str + split + 1, length);
buffer[length] = '\0'; buffer[length] = '\0';
key.reset(buffer); key.reset(buffer);
@ -106,7 +106,7 @@ class SimpleEdgeExpander {
backwardDirection = TRI_EDGE_ANY; backwardDirection = TRI_EDGE_ANY;
} }
}; };
} };
struct LocalCollectionGuard { struct LocalCollectionGuard {