Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / core / tool / calcconfig.cxx
blobf910bb151a878a910e74726414006b09977e21c0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "calcconfig.hxx"
12 ScCalcConfig::ScCalcConfig() :
13 meStringRefAddressSyntax(formula::FormulaGrammar::CONV_UNSPECIFIED),
14 mbEmptyStringAsZero(false),
15 mbOpenCLEnabled(false),
16 mbOpenCLAutoSelect(true)
20 void ScCalcConfig::reset()
22 *this = ScCalcConfig();
25 bool ScCalcConfig::operator== (const ScCalcConfig& r) const
27 return meStringRefAddressSyntax == r.meStringRefAddressSyntax &&
28 mbEmptyStringAsZero == r.mbEmptyStringAsZero &&
29 mbOpenCLEnabled == r.mbOpenCLEnabled &&
30 mbOpenCLAutoSelect == r.mbOpenCLAutoSelect &&
31 maOpenCLDevice == r.maOpenCLDevice;
34 bool ScCalcConfig::operator!= (const ScCalcConfig& r) const
36 return !operator==(r);
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */