/*
- * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "acl/NoteData.h"
#include "acl/StringData.h"
#include "ConfigParser.h"
-#include "Debug.h"
+#include "debug/Stream.h"
#include "sbuf/StringConvert.h"
#include "wordlist.h"
void
ACLNoteData::parse()
{
- char* t = ConfigParser::strtokFile();
- assert (t != NULL);
- name = t;
+ ConfigParser::SetAclKey(name, "annotation name");
values->parse();
}
return name.isEmpty();
}
-ACLData<NotePairs::Entry *> *
-ACLNoteData::clone() const
-{
- ACLNoteData * result = new ACLNoteData;
- result->values = dynamic_cast<ACLStringData*>(values->clone());
- assert(result->values);
- result->name = name;
- return result;
-}
-