Remove LogOptions copying.
GitOrigin-RevId: 1483e8978387719a8b4b1736a1cf0c8a5b2e5301
This commit is contained in:
parent
97b2191697
commit
32d7822746
@ -132,8 +132,9 @@ struct LogOptions {
|
||||
return level.exchange(new_level);
|
||||
}
|
||||
|
||||
static LogOptions plain() {
|
||||
return LogOptions{0, false, false};
|
||||
static const LogOptions &plain() {
|
||||
static LogOptions plain_options{0, false, false};
|
||||
return plain_options;
|
||||
}
|
||||
|
||||
constexpr LogOptions() = default;
|
||||
@ -150,8 +151,8 @@ struct LogOptions {
|
||||
add_info = other.add_info;
|
||||
return *this;
|
||||
}
|
||||
LogOptions(LogOptions &&) = default; // i.e. deleted
|
||||
LogOptions &operator=(LogOptions &&) = default; // i.e. deleted
|
||||
LogOptions(LogOptions &&) = delete;
|
||||
LogOptions &operator=(LogOptions &&) = delete;
|
||||
~LogOptions() = default;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user