summaryrefslogtreecommitdiffstats
path: root/xbmc/interfaces/info/InfoBool.cpp
blob: 65b1f44ec2dd600c381e70cc87e893a15dd7480c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 *  Copyright (C) 2013-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#include "InfoBool.h"

#include "utils/StringUtils.h"

namespace INFO
{
  InfoBool::InfoBool(const std::string &expression, int context, unsigned int &refreshCounter)
    : m_value(false),
      m_context(context),
      m_listItemDependent(false),
      m_expression(expression),
      m_refreshCounter(0),
      m_parentRefreshCounter(refreshCounter)
  {
    StringUtils::ToLower(m_expression);
  }
}