mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
RuleActionMIME: Switch to std::string
And return const std::string& from GetMIME(). Probably not at all performance relevant, but while I'm already here.
This commit is contained in:
parent
a7b077aa17
commit
e8241e16ee
2 changed files with 4 additions and 9 deletions
|
@ -69,12 +69,9 @@ void RuleActionEvent::PrintDebug() {
|
|||
fprintf(stderr, " RuleActionEvent: |%s (%s)|\n", msg ? msg->CheckString() : "<none>", handler->Name());
|
||||
}
|
||||
|
||||
RuleActionMIME::RuleActionMIME(const char* arg_mime, int arg_strength) {
|
||||
mime = util::copy_string(arg_mime);
|
||||
strength = arg_strength;
|
||||
}
|
||||
RuleActionMIME::RuleActionMIME(const char* arg_mime, int arg_strength) : mime(arg_mime), strength(arg_strength) {}
|
||||
|
||||
void RuleActionMIME::PrintDebug() { fprintf(stderr, " RuleActionMIME: |%s|\n", mime); }
|
||||
void RuleActionMIME::PrintDebug() { fprintf(stderr, " RuleActionMIME: |%s|\n", mime.c_str()); }
|
||||
|
||||
RuleActionAnalyzer::RuleActionAnalyzer(const char* arg_analyzer) {
|
||||
string str(arg_analyzer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue