Small code rearrangement in GUIRunTime.

Initialise variable in FormPreferences::Colors::Colors.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2398 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-08-01 11:14:24 +00:00
parent bcd818abe3
commit ab9eb4667d
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2001-08-01 Angus Leeming <a.leeming@ic.ac.uk>
* FormPreferences.C (Color c-tor): initialise modifiedXformsPrefs.
2001-07-30 Angus Leeming <a.leeming@ic.ac.uk>
* GUIRunTime.C (processEvents, runTime): small code rearrangement.
2001-08-01 John Levon <moz@compsoc.man.ac.uk> 2001-08-01 John Levon <moz@compsoc.man.ac.uk>
* FormMathsPanel.C: * FormMathsPanel.C:

View File

@ -393,7 +393,7 @@ void FormPreferences::update()
FormPreferences::Colors::Colors(FormPreferences & p) FormPreferences::Colors::Colors(FormPreferences & p)
: parent_(p) : modifiedXformsPrefs(false), parent_(p)
{} {}

View File

@ -70,10 +70,9 @@ int GUIRunTime::initApplication(int , char **)
void GUIRunTime::processEvents() void GUIRunTime::processEvents()
{ {
XEvent ev;
if (fl_do_forms() == FL_EVENT) { if (fl_do_forms() == FL_EVENT) {
lyxerr << "LyX: This shouldn't happen..." << endl; lyxerr << "LyX: This shouldn't happen..." << endl;
XEvent ev;
fl_XNextEvent(&ev); fl_XNextEvent(&ev);
} }
} }
@ -81,10 +80,10 @@ void GUIRunTime::processEvents()
void GUIRunTime::runTime() void GUIRunTime::runTime()
{ {
XEvent ev;
while (!finished) { while (!finished) {
if (fl_check_forms() == FL_EVENT) { if (fl_check_forms() == FL_EVENT) {
lyxerr << "LyX: This shouldn't happen..." << endl; lyxerr << "LyX: This shouldn't happen..." << endl;
XEvent ev;
fl_XNextEvent(&ev); fl_XNextEvent(&ev);
} }
} }