]> git.ipfire.org Git - thirdparty/squid.git/blame - src/YesNoNone.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / YesNoNone.cc
CommitLineData
bf35a4a7 1/*
ef57eb7b 2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
bf35a4a7 3 *
bbc27441
AJ
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.
bf35a4a7
FC
7 */
8
9#include "squid.h"
10#include "YesNoNone.h"
11
12YesNoNone::operator void*() const
13{
14 assert(option != 0); // must call configure() first
15 return option > 0 ? (void*)this : NULL;
16}
17
18void
19YesNoNone::configure(bool beSet)
20{
21 option = beSet ? +1 : -1;
22}
f53969cc 23