void Dimension::setBaseDimension(const BaseDim& dim)
    {
        // release old value, if any.
        if (d_value)  delete d_value;

        d_value = dim.clone();
    }
    void BaseDim::setOperand(const BaseDim& operand)
    {
        // release old operand, if any.
        if(d_operand) delete d_operand;

        d_operand = operand.clone();
    }
Exemple #3
0
//----------------------------------------------------------------------------//
void Dimension::setBaseDimension(const BaseDim& dim)
{
    // release old value, if any.
    if (d_value)
        CEGUI_DELETE_AO d_value;

    d_value = dim.clone();
}
Exemple #4
0
//----------------------------------------------------------------------------//
Dimension::Dimension(const BaseDim& dim, DimensionType type)
{
    d_value = dim.clone();
    d_type = type;
}