small cleanup
This commit is contained in:
@@ -254,7 +254,7 @@ const T& TopN<T, Cmp>::peek_bottom() {
|
||||
return elements_.front();
|
||||
}
|
||||
template <class T, class Cmp>
|
||||
std::vector<T> TopN<T, Cmp>::Take() {
|
||||
std::vector<T> TopN<T, Cmp>::Take() {
|
||||
std::vector<T> out = std::move(elements_);
|
||||
if (state_ != State::HEAP_SORTED) {
|
||||
std::sort(out.begin(), out.end(), cmp_);
|
||||
|
||||
@@ -58,7 +58,7 @@ std::string ProtoEnumToString(ProtoEnumType enum_value) {
|
||||
"Invalid enum value of: ", enum_value, " for enum type: ",
|
||||
google::protobuf::GetEnumDescriptor<ProtoEnumType>()->name());
|
||||
}
|
||||
return enum_value_descriptor->name();
|
||||
return std::string(enum_value_descriptor->name());
|
||||
#endif // !defined(__PORTABLE_PLATFORM__)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user