mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Make Value::type private
This is an implementation detail and shouldn't be used. Use normalType() and the various is<Type> functions instead
This commit is contained in:
parent
bf98903967
commit
730b152b19
2 changed files with 7 additions and 1 deletions
|
@ -68,7 +68,7 @@ RootValue allocRootValue(Value * v)
|
|||
}
|
||||
|
||||
|
||||
static void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v)
|
||||
void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v)
|
||||
{
|
||||
checkInterrupt();
|
||||
|
||||
|
|
|
@ -106,8 +106,14 @@ std::ostream & operator << (std::ostream & str, const ExternalValueBase & v);
|
|||
|
||||
struct Value
|
||||
{
|
||||
private:
|
||||
ValueType type;
|
||||
|
||||
friend std::string showType(const Value & v);
|
||||
friend void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v);
|
||||
|
||||
public:
|
||||
|
||||
inline void setInt() { type = tInt; };
|
||||
inline void setBool() { type = tBool; };
|
||||
inline void setString() { type = tString; };
|
||||
|
|
Loading…
Reference in a new issue