value: remove FieldSelectorDescription

FieldSelectorDescription is just Value::Field and
adds nothing on top of it.

Remove it in favor of Value::Field.
This commit is contained in:
Adrien Beraud committed 2017-04-03 19:10:01 +02:00
1 parent 6bb00ab732
commit 70ccbe4e40
3 files changed
+5 -33

No files matched your search

+1 -1
View File
@@ -427,7 +427,7 @@ bool Query::isSatisfiedBy(const Query& q) const {
std::ostream& operator<<(std::ostream& s, const dht::Select& select) {
s << "SELECT " << (select.fieldSelection_.empty() ? "*" : "");
for (auto fs = select.fieldSelection_.begin() ; fs != select.fieldSelection_.end() ; ++fs) {
switch (fs->getField()) {
switch (*fs) {
case Value::Field::Id:
s << "id";
break;