From: Jean-Marc Lasgouttes Date: Tue, 13 Jun 2000 10:33:57 +0000 (+0000) Subject: Small fixes to compile with compaq cxx X-Git-Tag: 1.6.10~22175 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a0911c75d0ab937fe16ed6bef21c2b4fd744f4ec;p=features.git Small fixes to compile with compaq cxx git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@812 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index e56ecd0a4c..a1ad739a1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2000-06-13 Jean-Marc Lasgouttes + + * src/Timeout.C (TimeOut): remove default argument. + + * src/LyXView.C (LyXView_AutosaveTimerCB): this should not have + "C" linkage. + + * src/insets/ExternalTemplate.C: add a "using" directive. + + * src/lyx_main.h: remove the act_ struct, which seems unused + anyway. + 2000-06-12 Lars Gullik Bjønnes * LyX Developers Meeting: All files changed, due to random C++ (by diff --git a/src/LyXView.C b/src/LyXView.C index 29d6ae71a0..7c2c426bf2 100644 --- a/src/LyXView.C +++ b/src/LyXView.C @@ -158,13 +158,11 @@ void LyXView::AutoSave() // Wrapper for the above -extern "C" { - static - void C_LyXView_AutosaveTimerCB(void * ob) - { - LyXView * view = static_cast(ob); - view->AutoSave(); - } +static +void LyXView_AutosaveTimerCB(void * ob) +{ + LyXView * view = static_cast(ob); + view->AutoSave(); } /// Reset autosave timer @@ -265,7 +263,7 @@ void LyXView::create_form_form_main(int width, int height) // TIMERS // - autosave_timeout.callback(C_LyXView_AutosaveTimerCB, this); + autosave_timeout.callback(LyXView_AutosaveTimerCB, this); // // Misc diff --git a/src/Timeout.C b/src/Timeout.C index 1f402423c1..fc0a8c5045 100644 --- a/src/Timeout.C +++ b/src/Timeout.C @@ -22,7 +22,7 @@ Timeout::Timeout() callback_(0), data_(0) {} -Timeout::Timeout(int msec, Type t = ONETIME) +Timeout::Timeout(int msec, Type t) : type(t), timeout(msec), timeout_id(-1), callback_(0), data_(0) {} diff --git a/src/insets/ExternalTemplate.C b/src/insets/ExternalTemplate.C index 7a4391a817..3251d0e99b 100644 --- a/src/insets/ExternalTemplate.C +++ b/src/insets/ExternalTemplate.C @@ -24,6 +24,7 @@ using std::endl; using std::ostream; +using std::for_each; extern string user_lyxdir; diff --git a/src/lyx_main.h b/src/lyx_main.h index b37acb2dbc..c992dfc80a 100644 --- a/src/lyx_main.h +++ b/src/lyx_main.h @@ -66,8 +66,8 @@ private: bool first_start; /// string batch_command; - /// - struct sigaction act_; + /// + // struct sigaction act_; // seems to be unused //@} /**@name Private Members */ //@{