]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
fix crash when collapsing ert with cursor inside
[lyx.git] / src / LColor.C
index 1642e4f6c35cd2f270f45792c7c4069997569467..2f24d5c9a5a0dc760e159765bec37f7897a1dfa7 100644 (file)
@@ -42,9 +42,11 @@ struct ColorEntry {
 
 }
 
-struct LColor::Pimpl {
+class LColor::Pimpl {
+public:
        ///
-       struct information {
+       class information {
+       public:
                /// the name as it appears in the GUI
                string guiname;
                /// the name used in LaTeX
@@ -160,10 +162,10 @@ LColor::~LColor()
 {}
 
 
-void LColor::operator=(LColor const & c)
+LColor & LColor::operator=(LColor tmp)
 {
-       LColor tmp(c);
        boost::swap(pimpl_, tmp.pimpl_);
+       return *this;
 }