From 532141facfd18627e9972f7a4f3d2032d18e0d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 1 Jun 2000 00:01:17 +0000 Subject: [PATCH] const fixes and alway generate/run latex on view/update git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@787 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 10 ++++++++++ src/chset.C | 2 +- src/chset.h | 2 +- src/lyx_cb.C | 4 ++-- src/trans_mgr.C | 2 +- src/trans_mgr.h | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94632f61fb..df28f3f154 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-06-01 Lars Gullik Bjønnes + + * src/lyx_cb.C (MakeLaTeXOutput): we run MakeLaTeXOutput regard + less of dvi dirty or not. + + * src/trans_mgr.[Ch] (insert): change first parameter to string + const &. + + * src/chset.[Ch] (encodeString): add const to first parameter + 2000-05-31 Lars Gullik Bjønnes * src/support/lyxstring.C (begin): fix a "shared" string bug. use diff --git a/src/chset.C b/src/chset.C index 31d3f16243..84b85ecdb8 100644 --- a/src/chset.C +++ b/src/chset.C @@ -62,7 +62,7 @@ bool CharacterSet::loadFile(string const & fname) } -pair CharacterSet::encodeString(string & str) const +pair CharacterSet::encodeString(string & const str) const { lyxerr[Debug::KBMAP] << "Checking if we know [" << str << "]" << endl; bool ret = false; diff --git a/src/chset.h b/src/chset.h index 5a553c0996..73d49c8449 100644 --- a/src/chset.h +++ b/src/chset.h @@ -19,7 +19,7 @@ public: /// string const & getName() const; /// - std::pair encodeString(string &) const; + std::pair encodeString(string const &) const; private: /// string name_; diff --git a/src/lyx_cb.C b/src/lyx_cb.C index ace787145d..7749933ed7 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -409,10 +409,10 @@ int MakeLaTeXOutput(Buffer * buffer) if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) { path = buffer->tmppath; } - if (!buffer->isDviClean()) { + //if (!buffer->isDviClean()) { Path p(path); ret = MenuRunLaTeX(buffer); - } + //} return ret; } diff --git a/src/trans_mgr.C b/src/trans_mgr.C index 3dc9bd28a0..f7e4bb6310 100644 --- a/src/trans_mgr.C +++ b/src/trans_mgr.C @@ -300,7 +300,7 @@ void TransManager::insertVerbatim(string const & str, LyXText * text) } -void TransManager::insert(string str, LyXText * text) +void TransManager::insert(string const & str, LyXText * text) { // Go through the character encoding only if the current // encoding (chset_->name()) matches the current font_norm diff --git a/src/trans_mgr.h b/src/trans_mgr.h index 93cc95adfe..1a6917386f 100644 --- a/src/trans_mgr.h +++ b/src/trans_mgr.h @@ -147,7 +147,7 @@ private: /// CharacterSet chset_; /// - void insert(string, LyXText *); + void insert(string const &, LyXText *); /// void insertVerbatim(string const &, LyXText *); public: