]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.h
* QPrefsDialog::QPrefsDialog():
[lyx.git] / src / lyxlength.h
index 2b0f33e6a7584a7978647ead66416f0ceb3f794f..c0c658d6931c3032272171ec4f712711052db882 100644 (file)
 
 #include <string>
 
+// Solaris/x86 version 9 and earlier define these
+#ifdef PC
+#  undef PC
+#endif
+#ifdef SP
+#  undef SP
+#endif
+
+
 /**
  * LyXLength - Represents latex length measurement
  */
@@ -53,6 +62,12 @@ public:
        /// "data" must be a decimal number, followed by a unit
        explicit LyXLength(std::string const & data);
 
+       void swap(LyXLength & rhs)
+       {
+               std::swap(val_, rhs.val_);
+               std::swap(unit_, rhs.unit_);
+       }
+
        ///
        double value() const;
        ///