Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table
ref #3269
This commit is contained in:
1 parent
4a963cc480
commit
40db183e37
8 files changed
+68
-3
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
struct OptionalBool
|
||||
{
|
||||
OptionalBool() = default;
|
||||
|
||||
OptionalBool(bool value):
|
||||
is_set(true), value(value) {}
|
||||
|
||||
void set_value(bool value)
|
||||
{
|
||||
this->is_set = true;
|
||||
this->value = value;
|
||||
}
|
||||
|
||||
void unset()
|
||||
{
|
||||
this->is_set = false;
|
||||
}
|
||||
|
||||
bool is_set{false};
|
||||
bool value{false};
|
||||
};
|
||||
Reference in new issue
Block a user