]> git.ipfire.org Git - thirdparty/squid.git/blob - src/YesNoNone.cc
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / YesNoNone.cc
1 /*
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #include "squid.h"
10 #include "YesNoNone.h"
11
12 YesNoNone::operator void*() const
13 {
14 assert(option != 0); // must call configure() first
15 return option > 0 ? (void*)this : NULL;
16 }
17
18 void
19 YesNoNone::configure(bool beSet)
20 {
21 option = beSet ? +1 : -1;
22 }