LyXLength::UNIT_NONE,
LyXLength::UNIT_NONE,
LyXLength::UNIT_NONE };
-//static int number_index, unit_index;
-int number_index, unit_index;
+static int number_index, unit_index;
static inline
/// The parser may seem overkill for lengths without
/// glue, but since we already have it, using it is
/// easier than writing something from scratch.
+ if (data.empty())
+ return true;
string buffer(data);
int pattern_index = 0;
bool VSpace::operator==(VSpace const & other) const
{
- if (this->kin == other.kin)
- if (this->kin == LENGTH)
- if (this->len == other.len)
- return this->kp == other.kp;
- else
- return false;
- else
- return this->kp == other.kp;
- else
+ if (this->kin != other.kin)
+ return false;
+
+ if (this->kin != LENGTH)
+ return this->kp == other.kp;
+
+ if (!(this->len == other.len))
return false;
+
+ return this->kp == other.kp;
}