1
0
Fork 0

make tools complain less

This commit is contained in:
jsteemann 2019-04-04 23:20:15 +02:00
parent 83ed1d85eb
commit 04fe5f816c
2 changed files with 9 additions and 9 deletions

View File

@ -102,23 +102,23 @@ struct BoolWrapper {
};
struct ProducesResults : BoolWrapper {
explicit ProducesResults(bool b) : BoolWrapper(b){};
explicit ProducesResults(bool b) : BoolWrapper(b){}
};
struct ConsultAqlWriteFilter : BoolWrapper {
explicit ConsultAqlWriteFilter(bool b) : BoolWrapper(b){};
explicit ConsultAqlWriteFilter(bool b) : BoolWrapper(b){}
};
struct IgnoreErrors : BoolWrapper {
explicit IgnoreErrors(bool b) : BoolWrapper(b){};
explicit IgnoreErrors(bool b) : BoolWrapper(b){}
};
struct DoCount : BoolWrapper {
explicit DoCount(bool b) : BoolWrapper(b){};
explicit DoCount(bool b) : BoolWrapper(b){}
};
struct IsReplace : BoolWrapper {
explicit IsReplace(bool b) : BoolWrapper(b){};
explicit IsReplace(bool b) : BoolWrapper(b){}
};
struct IgnoreDocumentNotFound : BoolWrapper {
explicit IgnoreDocumentNotFound(bool b) : BoolWrapper(b){};
explicit IgnoreDocumentNotFound(bool b) : BoolWrapper(b){}
};
struct ModificationExecutorInfos : public ExecutorInfos {

View File

@ -148,7 +148,7 @@ struct UpdateReplace : ModificationBase {
bool doOutput(ModificationExecutorInfos&, OutputAqlItemRow&);
UpdateReplace() = delete;
UpdateReplace(MethodPtr method, std::string name)
UpdateReplace(MethodPtr method, std::string&& name)
: _method(method), _name(std::move(name)) {}
void reset() {
@ -156,8 +156,8 @@ struct UpdateReplace : ModificationBase {
_updateOrReplaceBuilder.clear();
};
MethodPtr _method;
std::string _name;
MethodPtr const _method;
std::string const _name;
VPackBuilder _updateOrReplaceBuilder;
};