Skip to content

Commit

Permalink
comment out problematic asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 16, 2016
1 parent afa3784 commit 3f4f807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App/Enumeration.cpp
Expand Up @@ -158,7 +158,7 @@ void Enumeration::setEnums(const std::vector<std::string> &values)
void Enumeration::setValue(const char *value)
{
// using string methods without set, use setEnums(const char** plEnums) first!
assert(_EnumArray);
//assert(_EnumArray);

if (!_EnumArray) {
_index = 0;
Expand Down Expand Up @@ -200,7 +200,7 @@ void Enumeration::setValue(long value, bool checkRange)
bool Enumeration::isValue(const char *value) const
{
// using string methods without set, use setEnums(const char** plEnums) first!
assert(_EnumArray);
//assert(_EnumArray);

int i = getInt();

Expand All @@ -214,7 +214,7 @@ bool Enumeration::isValue(const char *value) const
bool Enumeration::contains(const char *value) const
{
// using string methods without set, use setEnums(const char** plEnums) first!
assert(_EnumArray);
//assert(_EnumArray);

if (!isValid()) {
return false;
Expand All @@ -236,7 +236,7 @@ bool Enumeration::contains(const char *value) const
const char * Enumeration::getCStr(void) const
{
// using string methods without set, use setEnums(const char** plEnums) first!
assert(_EnumArray);
//assert(_EnumArray);

if (!isValid() || _index < 0 || _index > _maxVal) {
return NULL;
Expand Down

0 comments on commit 3f4f807

Please sign in to comment.