remove spurious semicolons in BranchList.h

fix branchlist crash


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7566 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-08-18 12:27:49 +00:00
parent dd25d9ffe5
commit 5fc41035a4
2 changed files with 11 additions and 5 deletions

View File

@ -62,7 +62,7 @@ private:
class BranchList {
public:
///
BranchList(): separator_("|") {};
BranchList() : separator_("|") {}
///
typedef std::list<Branch> List;
@ -70,13 +70,13 @@ public:
///
void clear();
///
bool empty() { return list.empty(); };
bool empty() { return list.empty(); }
///
bool size() const { return list.size(); };
bool size() const { return list.size(); }
///
List::const_iterator begin() const { return list.begin(); };
List::const_iterator begin() const { return list.begin(); }
///
List::const_iterator end() const { return list.end(); };
List::const_iterator end() const { return list.end(); }
///
string getColor(string const &) const;
///

View File

@ -628,6 +628,9 @@ void expandToc(Menu & tomenu, LyXView const * view)
void expandPasteRecent(Menu & tomenu, LyXView const * view)
{
if (!view || !view->buffer())
return;
vector<string> const selL =
CutAndPaste::availableSelections(*view->buffer());
@ -644,6 +647,9 @@ void expandPasteRecent(Menu & tomenu, LyXView const * view)
void expandBranches(Menu & tomenu, LyXView const * view)
{
if (!view || !view->buffer())
return;
BufferParams const & params = view->buffer()->params;
std::list<Branch>::const_iterator cit = params.branchlist.begin();