/* Copyright (C) 2002-2004 RealVNC Ltd. All Rights Reserved.
+ * Copyright (C) 2004 Peter Astrand, Cendio AB. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
bool b = current->setParam(val);
current->setHasBeenSet();
- if (b && immutable)
- current->setImmutable();
+ if (b && immutable)
+ current->setImmutable();
return b;
}
current = current->_next;
if (strcasecmp(current->getName(), config) == 0) {
bool b = current->setParam();
current->setHasBeenSet();
- if (b && immutable)
- current->setImmutable();
+ if (b && immutable)
+ current->setImmutable();
return b;
}
current = current->_next;
return param->isBool();
}
+void
+AliasParameter::setImmutable() {
+ vlog.debug("set immutable %s (Alias)", getName());
+ param->setImmutable();
+}
+
+
// -=- BoolParameter
BoolParameter::BoolParameter(const char* name_, const char* desc_, bool v)
#ifdef WIN32
Lock l(configLock);
#endif
- if (immutable) return;
+ if (immutable) return;
vlog.debug("set %s(Binary)", getName());
delete [] value; value = 0;
if (len) {
virtual char* getDefaultStr() const;
virtual char* getValueStr() const;
virtual bool isBool() const;
+ virtual void setImmutable();
private:
VoidParameter* param;
};