]>
Commit | Line | Data |
---|---|---|
bf35a4a7 | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 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 | ||
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 | } | |
f53969cc | 23 |