]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.cpp
* GuiView.cpp:
[lyx.git] / src / BranchList.cpp
index 5ca0fd58fc62cba233dbeff99a590c311bb559a2..8967fab12f52ca2c2f4cc7c8335c1fadffef284d 100644 (file)
@@ -21,6 +21,20 @@ using namespace std;
 
 namespace lyx {
 
+namespace {
+class BranchNamesEqual : public std::unary_function<Branch, bool> {
+public:
+       BranchNamesEqual(docstring const & name)
+               : name_(name) {}
+       bool operator()(Branch const & branch) const
+       {
+               return branch.getBranch() == name_;
+       }
+private:
+       docstring name_;
+};
+}
+
 
 Branch::Branch() : selected_(false)
 {