X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLength.cpp;h=90da83a74ca7080a9fbc2b75762ce761f13501f0;hb=2455bc258f3b62c29ec4a41cb88070ff8518e842;hp=49f1d633c4a16dea90fdabcebcba06df261a4779;hpb=5ddc612b735317d5b22553a63aad7879503e3950;p=lyx.git diff --git a/src/Length.cpp b/src/Length.cpp index 49f1d633c4..90da83a74c 100644 --- a/src/Length.cpp +++ b/src/Length.cpp @@ -23,12 +23,10 @@ #include #include +using namespace std; namespace lyx { -using std::ostringstream; -using std::string; - ///////////////////////////////////////////////////////////////////// // @@ -59,6 +57,13 @@ Length::Length(string const & data) } +void Length::swap(Length & rhs) +{ + std::swap(val_, rhs.val_); + std::swap(unit_, rhs.unit_); +} + + string const Length::asString() const { ostringstream os;