mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
dd25d9ffe5
commit
5fc41035a4
@ -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;
|
||||
///
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user