]> git.lyx.org Git - lyx.git/blobdiff - src/ShareContainer.h
move include files
[lyx.git] / src / ShareContainer.h
index b4b5206b5d2fcbb06c2e10ca70658741c6064acf..8dd3d9706d61180ffed568fd557c14f4488c1fe7 100644 (file)
 /// Share objects between several users.
 /**
    This class can be used to reduce memory consuption when you have a lot
-   of equal objects used all over you code.
+   of equal objects used all over your code.
 
    \author Lars Gullik Bjønnes
 */
 template<class Share>
-class ShareContainer : public noncopyable {
+class ShareContainer : public boost::noncopyable {
 public:
        ///
        typedef std::vector<boost::shared_ptr<Share> > Params;
@@ -46,7 +46,7 @@ public:
                        // move it forward - optimization
                        // makes the next find faster.
                        if (it != params.begin())
-                               swap(*it, *(it - 1));
+                               std::swap(*it, *(it - 1));
                }
                return tmp;
        }
@@ -60,7 +60,7 @@ private:
        private:
                Share const & p_;
        };
-       /// A functor returning true if the element is unque.
+       /// A functor returning true if the element is unique.
        struct isUnique {
                bool operator()(value_type const & p) const {
                        return p.unique();