#include "squid.h"
#include "base/RegexPattern.h"
+#include <utility>
RegexPattern::RegexPattern(int aFlags, const char *aPattern) :
flags(aFlags),
}
RegexPattern::RegexPattern(RegexPattern &&o) :
- flags(std::move(o.flags)), // does o.flags=0
+ flags(std::move(o.flags)),
regex(std::move(o.regex)),
pattern(std::move(o.pattern))
{
RegexPattern &
RegexPattern::operator =(RegexPattern &&o)
{
- flags = std::move(o.flags); // does o.flags=0
+ flags = std::move(o.flags);
regex = std::move(o.regex);
memset(&o.regex, 0, sizeof(o.regex));
pattern = std::move(o.pattern);