1
0
Fork 0

Fixing warnings

This commit is contained in:
Simon Grätzer 2017-04-20 19:07:30 +02:00
parent ec848b879f
commit 98df9c21a2
6 changed files with 12 additions and 9 deletions

View File

@ -143,7 +143,9 @@ static std::unique_ptr<graph::BaseOptions> CreateTraversalOptions(
"supported, with bfs: true due to "
"unpredictable results.");
}
return options;
std::unique_ptr<graph::BaseOptions> ret(options.get());
options.release();
return ret;
}
static std::unique_ptr<graph::BaseOptions> CreateShortestPathOptions(
@ -171,7 +173,9 @@ static std::unique_ptr<graph::BaseOptions> CreateShortestPathOptions(
}
}
}
return options;
std::unique_ptr<graph::BaseOptions> ret(options.get());
options.release();
return ret;
}
/// @brief create the plan

View File

@ -31,7 +31,7 @@
namespace arangodb {
namespace graph {
class BaseOptions;
struct BaseOptions;
}
namespace aql {

View File

@ -32,15 +32,15 @@
namespace arangodb {
namespace aql {
class Collection;
struct Collection;
}
namespace graph {
class BaseOptions;
struct BaseOptions;
}
namespace traverser {
class TraverserOptions;
struct TraverserOptions;
}
namespace aql {

View File

@ -31,7 +31,7 @@ namespace arangodb {
class CollectionNameResolver;
namespace graph {
class BaseOptions;
struct BaseOptions;
class ClusterTraverserCache;
}

View File

@ -32,7 +32,7 @@ namespace arangodb {
class StringRef;
namespace aql {
class AqlValue;
struct AqlValue;
}
namespace transaction {

View File

@ -82,7 +82,6 @@ std::string const RocksDBEngine::FeatureName("RocksDBEngine");
RocksDBEngine::RocksDBEngine(application_features::ApplicationServer* server)
: StorageEngine(server, EngineName, FeatureName, new RocksDBIndexFactory()),
_db(nullptr),
_replicationManager(nullptr),
_cmp(new RocksDBComparator()),
_maxTransactionSize((std::numeric_limits<uint64_t>::max)()),
_intermediateTransactionCommitSize(32 * 1024 * 1024),